Solomon made an agreement with the king of Egypt by marrying his daughter and bringing her to Jerusalem. At this time Solomon was still building his palace and the Temple of the Lord, as well as a wall around Jerusalem.
The Temple for the worship of the Lord had not yet been finished, so people were still sacrificing at altars in many places of worship.
Solomon showed he loved the Lord by following the commands his father David had given him, except many other places of worship were still used to offer sacrifices and to burn incense.
King Solomon went to Gibeon to offer a sacrifice, because it was the most important place of worship. He offered a thousand burnt offerings on that altar.
While he was at Gibeon, the Lord appeared to him in a dream during the night. God said, "Ask for whatever you want me to give you."
Solomon answered, "You were very kind to your servant, my father David. He obeyed you, and he was honest and lived right. You showed great kindness to him when you allowed his son to be king after him.
Lord my God, now you have made me, your servant, king in my father's place. But I am like a little child; I don't know how to do what must be done.
I, your servant, am here among your chosen people, and there are too many of them to count.
I ask that you give me an obedient heart so I can rule the people in the right way and will know the difference between right and wrong. Otherwise, it is impossible to rule this great people of yours."
The Lord was pleased that Solomon had asked this.
So God said to him, "You did not ask for a long life, or riches for yourself, or the death of your enemies. Since you asked for wisdom to make the right decisions,
I will do what you asked. I will give you wisdom and understanding that is greater than anyone has had in the past or will have in the future.
I will also give you what you did not ask for: riches and honor. During your life no other king will be as great as you.
If you follow me and obey my laws and commands, as your father David did, I will also give you a long life."
After Solomon woke up from the dream, he went to Jerusalem. He stood before the Ark of the Agreement with the Lord, where he made burnt offerings and fellowship offerings. After that, he gave a feast for all his leaders and officers.
One day two women who were prostitutes came to Solomon. As they stood before him,
one of the women said, "My master, this woman and I live in the same house. I gave birth to a baby while she was there with me.
Three days later this woman also gave birth to a baby. No one else was in the house with us; it was just the two of us.
One night this woman rolled over on her baby, and he died.
So she took my son from my bed during the night while I was asleep, and she carried him to her bed. Then she put the dead baby in my bed.
The next morning when I got up to feed my baby, I saw that he was dead! When I looked at him more closely, I realized he was not my son."
"No!" the other woman cried. "The living baby is my son, and the dead baby is yours!" But the first woman said, "No! The dead baby is yours, and the living one is mine!" So the two women argued before the king.
Then King Solomon said, "One of you says, 'My son is alive and your son is dead.' Then the other one says, 'No! Your son is dead and my son is alive.'"
The king sent his servants to get a sword. When they brought it to him,
he said, "Cut the living baby into two pieces, and give each woman half."
The real mother of the living child was full of love for her son. So she said to the king, "Please, my master, don't kill him! Give the baby to her!" But the other woman said, "Neither of us will have him. Cut him into two pieces!"
Then King Solomon said, "Don't kill him. Give the baby to the first woman, because she is the real mother."
When the people of Israel heard about King Solomon's decision, they respected him very much. They saw he had wisdom from God to make the right decisions.