Solomon ruled over all Israel from Jerusalem for forty years.