Solomon made a peace treaty with Pharaoh, the king of Egypt, by marrying his daughter. Solomon brought her to the City of David. This was when Solomon was still building his palace, the Temple of the Lord, and the wall around Jerusalem.
Solomon showed that he loved the Lord by obeying everything his father David told him to do, except that Solomon continued to go to the high places to offer sacrifices and to burn incense.
Solomon answered, "You were very kind and loyal to my father David. He was your servant and followed you. He was good and lived right. And you showed the greatest kindness to him when you allowed his son to rule on his throne after him.
So I ask you to give me the wisdom to rule and judge them well and to help me know the difference between right and wrong. Without such great wisdom, it would be impossible to rule this great nation."
So God said to him, "You did not ask for long life and riches for yourself. You did not ask for the death of your enemies. You asked for the wisdom to listen and make the right decisions.
And I will also give you what you did not ask for. You will have riches and honor all your life. There will be no other king in the world as great as you.
Solomon woke up and knew that God had spoken to him in the dream. Then Solomon went to Jerusalem and stood before the Box of the Lord's Agreement. He offered a burnt offering and fellowship offerings to the Lord and then gave a party for all of his officials.
One of the women said, "Sir, this woman and I live in the same house. We were both pregnant and ready to give birth to our babies. I had my baby while she was there with me.
But the other woman said, "No! The dead baby is yours, and the one still alive is mine!" But the first woman said, "No, you are wrong! The dead baby is yours! The one that is still alive is mine." So the two women argued in front of the king.
The second woman said, "Yes, cut him in two. Then neither of us will have him." But the first woman, the real mother, loved her son and said to the king, "Please, sir, don't kill the baby! Give him to her."