31Solomon made an alliance with the king of Egypt by marrying his daughter. He brought her to live in David's City until he had finished building his palace, the Temple, and the wall round Jerusalem. 2A temple had not yet been built for the LORD, and so the people were still offering sacrifices at many different altars. 3Solomon loved the LORD and followed the instructions of his father David, but he also slaughtered animals and offered them as sacrifices on various altars.
4On one occasion he went to Gibeon to offer sacrifices because that was where the most famous altar was. He had offered hundreds of burnt offerings there in the past. 5That night the LORD appeared to him in a dream and asked him, “What would you like me to give you?”
6Solomon answered, “You always showed great love for my father David, your servant, and he was good, loyal, and honest in his relations with you. And you have continued to show him your great and constant love by giving him a son who today rules in his place. 7O LORD God, you have let me succeed my father as king, even though I am very young and don't know how to rule. 8Here I am among the people you have chosen to be your own, a people who are so many that they cannot be counted. 9So give me the wisdom I need to rule your people with justice and to know the difference between good and evil. Otherwise, how would I ever be able to rule this great people of yours?”
10The LORD was pleased that Solomon had asked for this, 11and so he said to him, “Because you have asked for the wisdom to rule justly, instead of long life for yourself or riches or the death of your enemies, 12I will do what you have asked. I will give you more wisdom and understanding than anyone has ever had before or will ever have again. 13I will also give you what you have not asked for: all your life you will have wealth and honour, more than that of any other king. 14And if you obey me and keep my laws and commands, as your father David did, I will give you a long life.”
15Solomon woke up and realized that God had spoken to him in the dream. Then he went to Jerusalem and stood in front of the LORD's Covenant Box and offered burnt offerings and fellowship offerings to the LORD. After that he gave a feast for all his officials.
16One day two prostitutes came and presented themselves before King Solomon. 17One of them said, “Your Majesty, this woman and I live in the same house, and I gave birth to a baby boy at home while she was there. 18Two days after my child was born she also gave birth to a baby boy. Only the two of us were there in the house — no one else was present. 19Then one night she accidentally rolled over on her baby and smothered it. 20She got up during the night, took my son from my side while I was asleep, and carried him to her bed; then she put the dead child in my bed. 21The next morning, when I woke up and was going to feed my baby, I saw that it was dead. I looked at it more closely and saw that it was not my child.”
22But the other woman said, “No! The living child is mine, and the dead one is yours!”
The first woman answered, “No! The dead child is yours, and the living one is mine!”
And so they argued before the king.
23Then King Solomon said, “Each of you claims that the living child is hers and that the dead child belongs to the other one.” 24He sent for a sword, and when it was brought, 25he said, “Cut the living child in two and give each woman half of it.”
26The real mother, her heart full of love for her son, said to the king, “Please, Your Majesty, don't kill the child! Give it to her!”
But the other woman said, “Don't give it to either of us; go ahead and cut it in two.”
27Then Solomon said, “Don't kill the child! Give it to the first woman — she is its real mother.”
28When the people of Israel heard of Solomon's decision, they were all filled with deep respect for him, because they knew then that God had given him the wisdom to settle disputes fairly.