1 Later, Solomon intermarried with the family of Pharaoh, the king of Egypt by taking his daughter and bringing her to the City of David to live until he had completed building his own palace, the LORD's Temple, and the wall around Jerusalem. 2 The people were sacrificing at various high places because the Temple had not yet been built and dedicated to the LORD. 3 Solomon loved the LORD, and lived according to the statutes that his father David obeyed, except that he sacrificed and burned offerings at the high places.
4 The king used to go to Gibeon to sacrifice, since there was a famous high place there, where Solomon once offered 1,000 burnt offerings on that altar. 5 The LORD appeared to Solomon one night in a dream and told him, "Ask me for whatever you want and I'll give it to you."
7 "You have demonstrated abundant gracious love to your servant David, my father, as he lived in your presence truthfully, righteously, and uprightly in his heart. In addition, you have kept on showing this abundant gracious love by giving him a son to sit on his throne today. Now, LORD my God, you have set me as king to replace my father David, but I'm still young. I don't have any leadership skills. 8 Your servant lives in the midst of your people that you have chosen, a great people that is too numerous to be counted. 9 So give your servant an understanding mind to govern your people, so I can discern between good and evil. Otherwise, how will I be able to govern this great people of yours?"
10 The LORD was pleased that Solomon had asked for this, 11 so God told him: 12 "Because you asked for this, and you didn't ask for a long life for yourself, and you didn't ask for the lives of your enemies, but instead you've asked for discernment so you can understand how to govern, look how I'm going to do precisely what you asked. I'm giving you a wise and discerning mind, so that there will have been no one like you before you and no one will arise after you like you. 13 I'm also giving you what you haven't requested: both riches and honor, so that no other king will be comparable to you during your lifetime. 14 If you will live life my way, keeping my statutes and my commands, just like your father David did, I'll also increase the length of your life."
15 Then Solomon woke up and realized that he had dreamed a dream. Then he went back to Jerusalem, stood before the ark of the LORD's covenant, offered burnt offerings and peace offerings, and threw a party for all of his servants.
16 Right about then, two prostitutes approached the king and requested an audience with him. 17 One woman said, "Your majesty, this woman and I live in the same house. I gave birth to a child while she was in the house. 18 Three days later, this woman also gave birth. We lived alone there. There was nobody else with us in the house. It was just the two of us. 19 This woman's son died overnight because she laid on top of him. 20 She got up in the middle of the night, took my son from me while your servant was asleep, and laid him to her breast after laying her dead son next to me. 21 The next morning, I got up to nurse my son, and he was dead. But when I examined him carefully in the light of day, he turned out not to be my son whom I had borne!"
22 "Not so," claimed the other woman. "The living child is my son, and the dead one is yours." But the first woman said, "Not so! The dead child is your son and the living one is my son." This is what they testified before the king.
23 The king said, "One of them claims, "This living son is mine, and your son is the dead one' and the other claims "No. Your son is the dead one and my son is the living one.' 24 "Somebody get me a sword." So they brought a sword to the king. 25 "Divide the living child in two!" he ordered. "Give half to the one and half to the other."
26 The woman whose child was still alive cried out to the king, because her heart yearned for her son. "Oh no, your majesty!" she said. "Give her the living child. Please don't kill him." But the other woman said, "Cut him in half! That way, he'll belong to neither one of us."
27 The king announced his decision: "Give the living child to the first woman. Don't kill him. She is his mother." 28 When this decision that the king had handed down was announced, everybody in Israel was amazed at the king, because they all saw that God's wisdom was in him, enabling him to administer justice.