And Solomon made an alliance by marriage with Pharaoh king of Egypt, and took Pharaoh's daughter and brought her into the city of David until he finished building his own house, and the house of Jehovah, and the wall around Jerusalem.
And Solomon said, You have shown to Your servant David my father great mercy, according as he walked before You in truth and in righteousness and in uprightness of heart with You. And You have kept this great kindness for him, that You have given him a son to sit on his throne, as it is today.
And give to Your servant an understanding heart, to judge Your people, to discern between good and bad. For who is able to judge this, Your great people?
And God said to him, Because you have asked this thing, and have not asked for yourself long life, and have not asked riches for yourself, nor have asked the life of your enemies, but have asked for yourself understanding to judge justly,
behold, I have done according to your words. Lo, I have given you a wise and an understanding heart, so that there was none like you before you, and after you none shall arise like you.
And Solomon awoke, and, behold, it was a dream. And he came to Jerusalem and stood before the ark of the covenant of Jehovah and offered up burnt offerings, and offered peace offerings, and made a feast to all his servants.
And it happened the third day after I gave birth, this woman bore a child also. And we were together; there was no stranger with us in the house, except the two of us in the house.
And she arose at midnight and took my son from beside me, while your servant was sleeping, and laid it in her bosom, and laid her dead child in my bosom.
When I arose in the morning to give my child suck, behold, it was dead. And when I had looked at it in the morning, behold, it was not my son whom I bore.
And the other woman said, No, but the living is my son, and the dead is your son. And this one said, No, but the dead is your son, and the living is my son. So they spoke before the king.
And the king said, The one says, This is my son who lives, and your son is the dead. And the other says, No, but your son is the dead, and my son is the living.
And the woman whose son was the living child said to the king, for her womb yearned over her son. And she said, O my lord, give her the living child, and in no way kill it. But the other said, Let it be neither mine nor yours; divide it!
And all Israel heard of the judgment which the king had judged. And they feared the king, for they saw that the wisdom of God was in him to do judgment.