Solomon and Pharaoh, the king of Egypt, agreed to help each other. So Solomon got married to Pharaoh's daughter. He brought her to the City of David. She stayed there until he finished building his palace, the LORD's temple, and the wall that was around Jerusalem.
But the people continued to offer sacrifices at the high places where they worshiped. That's because a temple hadn't been built yet where the LORD would put his Name.
Solomon showed his love for the Lord. He did it by obeying the laws his father David had taught him. But Solomon offered sacrifices at the high places. He also burned incense there.
King Solomon went to the city of Gibeon to offer sacrifices. That's where the most important high place was. He offered 1,000 burnt offerings on the altar that was there.
The LORD appeared to Solomon at Gibeon. He spoke to him in a dream during the night. God said, "Ask for anything you want me to give you."
Solomon answered, "You have been very kind to my father David, your servant. That's because he was faithful to you. He did what was right. His heart was honest. And you have continued to be very kind to him. You have given him a son to sit on his throne this very day.
"LORD my God, you have now made me king. You have put me in the place of my father David. But I'm only a little child. I don't know how to carry out my duties.
I'm here among the people you have chosen. They are a great nation. They are more than anyone can count.
So give me a heart that understands. Then I can rule over your people. I can tell the difference between what is right and what is wrong. Who can possibly rule over this great nation of yours?"
The Lord was pleased that Solomon had asked for that.
So God said to him, "You have not asked to live for a long time. You have not asked to be wealthy. You have not even asked to have your enemies killed. Instead, you have asked for understanding. You want to do what is right and fair when you judge people. Because that is what you have asked for,
I will give it to you. I will give you a wise and understanding heart. So here is what will be true of you. There has never been anyone like you. And there never will be.
"And that is not all. I will give you what you have not asked for. I will give you riches and honor. As long as you live, no other king will be as great as you are.
Live the way I want you to. Obey my laws and commands, just as your father David did. Then I will let you live for a long time."
Solomon woke up. He realized he had been dreaming. He returned to Jerusalem. He stood in front of the ark of the LORD's covenant. He sacrificed burnt offerings and friendship offerings. Then he gave a big dinner for all of his officials.
Two prostitutes came to the king. They stood in front of him.
One of them said, "My master, this woman and I live in the same house. I had a baby while she was there with me.
Three days after my child was born, this woman also had a baby. We were alone. There wasn't anyone in the house but the two of us.
"During the night this woman's baby died. It happened because she was lying on top of him.
So she got up in the middle of the night. She took my son from my side while I was asleep. She put him by her breast. Then she put her dead son by my breast.
The next morning, I got up to nurse my son. But he was dead! I looked at him closely in the morning light. And I saw that it wasn't my baby."
The other woman said, "No! The living baby is my son. The dead one belongs to you." But the first woman said, "No! The dead baby is yours. The living one belongs to me." So they argued in front of the king.
The king said, "One of you says, 'My son is alive. Your son is dead.' The other one says, 'No! Your son is dead. Mine is alive.' "
He continued, "Bring me a sword." So a sword was brought to him.
Then he gave an order. He said, "Cut the living child in two. Give half to one woman and half to the other."
The woman whose son was alive was filled with deep concern for her son. She said to the king, "My master, please give her the living baby! Don't kill him!" But the other woman said, "Neither one of us will have him. Cut him in two!"
Then the king made his decision. He said, "Give the living baby to the first woman. Don't kill him. She's his mother."
All of the people of Israel heard about the decision the king had given. That gave them great respect for him. They saw that God had given him wisdom. They knew that Solomon would do what was right and fair when he judged people.