29 People wrote down everything else that Solomon did while he ruled as king, from the beginning to the end. The prophet Nathan wrote them down in his book. The prophet Ahijah who came from Shiloh also wrote them down. The prophet Iddo also wrote about them in his book of the visions that he saw about Nebat's son Jeroboam. 30 Solomon ruled over all Israel for 40 years while he lived in Jerusalem. 31 Then he died. They buried him with his ancestors, in the city of his father David. His son Rehoboam became king after him.