YouVersion Logo
Search Icon

1 Kings 3:2-28

1 Kings 3:2-28 New International Version (NIV)

The people, however, were still sacrificing at the high places, because a temple had not yet been built for the Name of the LORD. Solomon showed his love for the LORD by walking according to the instructions given him by his father David, except that he offered sacrifices and burned incense on the high places. The king went to Gibeon to offer sacrifices, for that was the most important high place, and Solomon offered a thousand burnt offerings on that altar. At Gibeon the LORD appeared to Solomon during the night in a dream, and God said, “Ask for whatever you want me to give you.” Solomon answered, “You have shown great kindness to your servant, my father David, because he was faithful to you and righteous and upright in heart. You have continued this great kindness to him and have given him a son to sit on his throne this very day. “Now, LORD my God, you have made your servant king in place of my father David. But I am only a little child and do not know how to carry out my duties. Your servant is here among the people you have chosen, a great people, too numerous to count or number. So give your servant a discerning heart to govern your people and to distinguish between right and wrong. For who is able to govern this great people of yours?” The Lord was pleased that Solomon had asked for this. So God said to him, “Since you have asked for this and not for long life or wealth for yourself, nor have asked for the death of your enemies but for discernment in administering justice, I will do what you have asked. I will give you a wise and discerning heart, so that there will never have been anyone like you, nor will there ever be. Moreover, I will give you what you have not asked for—both wealth and honor—so that in your lifetime you will have no equal among kings. And if you walk in obedience to me and keep my decrees and commands as David your father did, I will give you a long life.” Then Solomon awoke—and he realized it had been a dream. He returned to Jerusalem, stood before the ark of the Lord’s covenant and sacrificed burnt offerings and fellowship offerings. Then he gave a feast for all his court. Now two prostitutes came to the king and stood before him. One of them said, “Pardon me, my lord. This woman and I live in the same house, and I had a baby while she was there with me. The third day after my child was born, this woman also had a baby. We were alone; there was no one in the house but the two of us. “During the night this woman’s son died because she lay on him. So she got up in the middle of the night and took my son from my side while I your servant was asleep. She put him by her breast and put her dead son by my breast. The next morning, I got up to nurse my son—and he was dead! But when I looked at him closely in the morning light, I saw that it wasn’t the son I had borne.” The other woman said, “No! The living one is my son; the dead one is yours.” But the first one insisted, “No! The dead one is yours; the living one is mine.” And so they argued before the king. The king said, “This one says, ‘My son is alive and your son is dead,’ while that one says, ‘No! Your son is dead and mine is alive.’ ” Then the king said, “Bring me a sword.” So they brought a sword for the king. He then gave an order: “Cut the living child in two and give half to one and half to the other.” The woman whose son was alive was deeply moved out of love for her son and said to the king, “Please, my lord, give her the living baby! Don’t kill him!” But the other said, “Neither I nor you shall have him. Cut him in two!” Then the king gave his ruling: “Give the living baby to the first woman. Do not kill him; she is his mother.” When all Israel heard the verdict the king had given, they held the king in awe, because they saw that he had wisdom from God to administer justice.

1 Kings 3:2-28 New Living Translation (NLT)

At that time the people of Israel sacrificed their offerings at local places of worship, for a temple honoring the name of the LORD had not yet been built. Solomon loved the LORD and followed all the decrees of his father, David, except that Solomon, too, offered sacrifices and burned incense at the local places of worship. The most important of these places of worship was at Gibeon, so the king went there and sacrificed 1,000 burnt offerings. That night the LORD appeared to Solomon in a dream, and God said, “What do you want? Ask, and I will give it to you!” Solomon replied, “You showed great and faithful love to your servant my father, David, because he was honest and true and faithful to you. And you have continued to show this great and faithful love to him today by giving him a son to sit on his throne. “Now, O LORD my God, you have made me king instead of my father, David, but I am like a little child who doesn’t know his way around. And here I am in the midst of your own chosen people, a nation so great and numerous they cannot be counted! Give me an understanding heart so that I can govern your people well and know the difference between right and wrong. For who by himself is able to govern this great people of yours?” The Lord was pleased that Solomon had asked for wisdom. So God replied, “Because you have asked for wisdom in governing my people with justice and have not asked for a long life or wealth or the death of your enemies— I will give you what you asked for! I will give you a wise and understanding heart such as no one else has had or ever will have! And I will also give you what you did not ask for—riches and fame! No other king in all the world will be compared to you for the rest of your life! And if you follow me and obey my decrees and my commands as your father, David, did, I will give you a long life.” Then Solomon woke up and realized it had been a dream. He returned to Jerusalem and stood before the Ark of the Lord’s Covenant, where he sacrificed burnt offerings and peace offerings. Then he invited all his officials to a great banquet. Some time later two prostitutes came to the king to have an argument settled. “Please, my lord,” one of them began, “this woman and I live in the same house. I gave birth to a baby while she was with me in the house. Three days later this woman also had a baby. We were alone; there were only two of us in the house. “But her baby died during the night when she rolled over on it. Then she got up in the night and took my son from beside me while I was asleep. She laid her dead child in my arms and took mine to sleep beside her. And in the morning when I tried to nurse my son, he was dead! But when I looked more closely in the morning light, I saw that it wasn’t my son at all.” Then the other woman interrupted, “It certainly was your son, and the living child is mine.” “No,” the first woman said, “the living child is mine, and the dead one is yours.” And so they argued back and forth before the king. Then the king said, “Let’s get the facts straight. Both of you claim the living child is yours, and each says that the dead one belongs to the other. All right, bring me a sword.” So a sword was brought to the king. Then he said, “Cut the living child in two, and give half to one woman and half to the other!” Then the woman who was the real mother of the living child, and who loved him very much, cried out, “Oh no, my lord! Give her the child—please do not kill him!” But the other woman said, “All right, he will be neither yours nor mine; divide him between us!” Then the king said, “Do not kill the child, but give him to the woman who wants him to live, for she is his mother!” When all Israel heard the king’s decision, the people were in awe of the king, for they saw the wisdom God had given him for rendering justice.

1 Kings 3:1-28 The Message (MSG)

Solomon arranged a marriage contract with Pharaoh, king of Egypt. He married Pharaoh’s daughter and brought her to the City of David until he had completed building his royal palace and GOD’s Temple and the wall around Jerusalem. Meanwhile, the people were worshiping at local shrines because at that time no temple had yet been built to the Name of GOD. Solomon loved GOD and continued to live in the God-honoring ways of David his father, except that he also worshiped at the local shrines, offering sacrifices and burning incense. The king went to Gibeon, the most prestigious of the local shrines, to worship. He sacrificed a thousand Whole-Burnt-Offerings on that altar. That night, there in Gibeon, GOD appeared to Solomon in a dream: God said, “What can I give you? Ask.” Solomon said, “You were extravagantly generous in love with David my father, and he lived faithfully in your presence, his relationships were just and his heart right. And you have persisted in this great and generous love by giving him—and this very day!—a son to sit on his throne. “And now here I am: GOD, my God, you have made me, your servant, ruler of the kingdom in place of David my father. I’m too young for this, a mere child! I don’t know the ropes, hardly know the ‘ins’ and ‘outs’ of this job. And here I am, set down in the middle of the people you’ve chosen, a great people—far too many to ever count. “Here’s what I want: Give me a God-listening heart so I can lead your people well, discerning the difference between good and evil. For who on their own is capable of leading your glorious people?” God, the Master, was delighted with Solomon’s response. And God said to him, “Because you have asked for this and haven’t grasped after a long life, or riches, or the doom of your enemies, but you have asked for the ability to lead and govern well, I’ll give you what you’ve asked for—I’m giving you a wise and mature heart. There’s never been one like you before; and there’ll be no one after. As a bonus, I’m giving you both the wealth and glory you didn’t ask for—there’s not a king anywhere who will come up to your mark. And if you stay on course, keeping your eye on the life-map and the God-signs as your father David did, I’ll also give you a long life.” Solomon woke up—what a dream! He returned to Jerusalem, took his place before the Chest of the Covenant of God, and worshiped by sacrificing Whole-Burnt-Offerings and Peace-Offerings. Then he laid out a banquet for everyone in his service. The very next thing, two prostitutes showed up before the king. The one woman said, “My master, this woman and I live in the same house. While we were living together, I had a baby. Three days after I gave birth, this woman also had a baby. We were alone—there wasn’t anyone else in the house except for the two of us. The infant son of this woman died one night when she rolled over on him in her sleep. She got up in the middle of the night and took my son—I was sound asleep, mind you!—and put him at her breast and put her dead son at my breast. When I got up in the morning to nurse my son, here was this dead baby! But when I looked at him in the morning light, I saw immediately that he wasn’t my baby.” “Not so!” said the other woman. “The living one’s mine; the dead one’s yours.” The first woman countered, “No! Your son’s the dead one; mine’s the living one.” They went back and forth this way in front of the king. The king said, “What are we to do? This woman says, ‘The living son is mine and the dead one is yours,’ and this woman says, ‘No, the dead one’s yours and the living one’s mine.’” After a moment the king said, “Bring me a sword.” They brought the sword to the king. Then he said, “Cut the living baby in two—give half to one and half to the other.” The real mother of the living baby was overcome with emotion for her son and said, “Oh no, master! Give her the whole baby alive; don’t kill him!” But the other one said, “If I can’t have him, you can’t have him—cut away!” The king gave his decision: “Give the living baby to the first woman. Nobody is going to kill this baby. She is the real mother.” The word got around—everyone in Israel heard of the king’s judgment. They were all in awe of the king, realizing that it was God’s wisdom that enabled him to judge truly.

1 Kings 3:2-28 King James Version (KJV)

Only the people sacrificed in high places, because there was no house built unto the name of the LORD, until those days. And Solomon loved the LORD, walking in the statutes of David his father: only he sacrificed and burnt incense in high places. And the king went to Gibeon to sacrifice there; for that was the great high place: a thousand burnt offerings did Solomon offer upon that altar. In Gibeon the LORD appeared to Solomon in a dream by night: and God said, Ask what I shall give thee. And Solomon said, Thou hast shewed unto thy servant David my father great mercy, according as he walked before thee in truth, and in righteousness, and in uprightness of heart with thee; and thou hast kept for him this great kindness, that thou hast given him a son to sit on his throne, as it is this day. And now, O LORD my God, thou hast made thy servant king instead of David my father: and I am but a little child: I know not how to go out or come in. And thy servant is in the midst of thy people which thou hast chosen, a great people, that cannot be numbered nor counted for multitude. Give therefore thy servant an understanding heart to judge thy people, that I may discern between good and bad: for who is able to judge this thy so great a people? And the speech pleased the Lord, that Solomon had asked this thing. And God said unto him, Because thou hast asked this thing, and hast not asked for thyself long life; neither hast asked riches for thyself, nor hast asked the life of thine enemies; but hast asked for thyself understanding to discern judgment; behold, I have done according to thy words: lo, I have given thee a wise and an understanding heart; so that there was none like thee before thee, neither after thee shall any arise like unto thee. And I have also given thee that which thou hast not asked, both riches, and honour: so that there shall not be any among the kings like unto thee all thy days. And if thou wilt walk in my ways, to keep my statutes and my commandments, as thy father David did walk, then I will lengthen thy days. And Solomon awoke; and, behold, it was a dream. And he came to Jerusalem, and stood before the ark of the covenant of the LORD, and offered up burnt offerings, and offered peace offerings, and made a feast to all his servants. Then came there two women, that were harlots, unto the king, and stood before him. And the one woman said, O my lord, I and this woman dwell in one house; and I was delivered of a child with her in the house. And it came to pass the third day after that I was delivered, that this woman was delivered also: and we were together; there was no stranger with us in the house, save we two in the house. And this woman's child died in the night; because she overlaid it. And she arose at midnight, and took my son from beside me, while thine handmaid slept, and laid it in her bosom, and laid her dead child in my bosom. And when I rose in the morning to give my child suck, behold, it was dead: but when I had considered it in the morning, behold, it was not my son, which I did bear. And the other woman said, Nay; but the living is my son, and the dead is thy son. And this said, No; but the dead is thy son, and the living is my son. Thus they spake before the king. Then said the king, The one saith, This is my son that liveth, and thy son is the dead: and the other saith, Nay; but thy son is the dead, and my son is the living. And the king said, Bring me a sword. And they brought a sword before the king. And the king said, Divide the living child in two, and give half to the one, and half to the other. Then spake the woman whose the living child was unto the king, for her bowels yearned upon her son, and she said, O my lord, give her the living child, and in no wise slay it. But the other said, Let it be neither mine nor thine, but divide it. Then the king answered and said, Give her the living child, and in no wise slay it: she is the mother thereof. 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.

1 Kings 3:2-28 New American Standard Bible - NASB 1995 (NASB1995)

The people were still sacrificing on the high places, because there was no house built for the name of the LORD until those days. Now Solomon loved the LORD, walking in the statutes of his father David, except he sacrificed and burned incense on the high places. The king went to Gibeon to sacrifice there, for that was the great high place; Solomon offered a thousand burnt offerings on that altar. In Gibeon the LORD appeared to Solomon in a dream at night; and God said, “Ask what you wish Me to give you.” Then Solomon said, “You have shown great lovingkindness to Your servant David my father, according as he walked before You in truth and righteousness and uprightness of heart toward You; and You have reserved for him this great lovingkindness, that You have given him a son to sit on his throne, as it is this day. Now, O LORD my God, You have made Your servant king in place of my father David, yet I am but a little child; I do not know how to go out or come in. Your servant is in the midst of Your people which You have chosen, a great people who are too many to be numbered or counted. So give Your servant an understanding heart to judge Your people to discern between good and evil. For who is able to judge this great people of Yours?” It was pleasing in the sight of the Lord that Solomon had asked this thing. God said to him, “Because you have asked this thing and have not asked for yourself long life, nor have asked riches for yourself, nor have you asked for the life of your enemies, but have asked for yourself discernment to understand justice, behold, I have done according to your words. Behold, I have given you a wise and discerning heart, so that there has been no one like you before you, nor shall one like you arise after you. I have also given you what you have not asked, both riches and honor, so that there will not be any among the kings like you all your days. If you walk in My ways, keeping My statutes and commandments, as your father David walked, then I will prolong your days.” Then Solomon awoke, and behold, it was a dream. And he came to Jerusalem and stood before the ark of the covenant of the Lord, and offered burnt offerings and made peace offerings, and made a feast for all his servants. Then two women who were harlots came to the king and stood before him. The one woman said, “Oh, my lord, this woman and I live in the same house; and I gave birth to a child while she was in the house. It happened on the third day after I gave birth, that this woman also gave birth to a child, and we were together. There was no stranger with us in the house, only the two of us in the house. This woman’s son died in the night, because she lay on it. So she arose in the middle of the night and took my son from beside me while your maidservant slept, and laid him in her bosom, and laid her dead son in my bosom. When I rose in the morning to nurse my son, behold, he was dead; but when I looked at him carefully in the morning, behold, he was not my son, whom I had borne.” Then the other woman said, “No! For the living one is my son, and the dead one is your son.” But the first woman said, “No! For the dead one is your son, and the living one is my son.” Thus they spoke before the king. Then the king said, “The one says, ‘This is my son who is living, and your son is the dead one’; and the other says, ‘No! For your son is the dead one, and my son is the living one.’ ” The king said, “Get me a sword.” So they brought a sword before the king. The king said, “Divide the living child in two, and give half to the one and half to the other.” Then the woman whose child was the living one spoke to the king, for she was deeply stirred over her son and said, “Oh, my lord, give her the living child, and by no means kill him.” But the other said, “He shall be neither mine nor yours; divide him!” Then the king said, “Give the first woman the living child, and by no means kill him. She is his mother.” When all Israel heard of the judgment which the king had handed down, they feared the king, for they saw that the wisdom of God was in him to administer justice.

1 Kings 3:2-28 New Century Version (NCV)

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 a heart that understands, 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.

1 Kings 3:2-28 American Standard Version (ASV)

Only the people sacrificed in the high places, because there was no house built for the name of Jehovah until those days. And Solomon loved Jehovah, walking in the statutes of David his father: only he sacrificed and burnt incense in the high places. And the king went to Gibeon to sacrifice there; for that was the great high place: a thousand burnt-offerings did Solomon offer upon that altar. In Gibeon Jehovah appeared to Solomon in a dream by night; and God said, Ask what I shall give thee. And Solomon said, Thou hast showed unto thy servant David my father great lovingkindness, according as he walked before thee in truth, and in righteousness, and in uprightness of heart with thee; and thou hast kept for him this great lovingkindness, that thou hast given him a son to sit on his throne, as it is this day. And now, O Jehovah my God, thou hast made thy servant king instead of David my father: and I am but a little child; I know not how to go out or come in. And thy servant is in the midst of thy people which thou hast chosen, a great people, that cannot be numbered nor counted for multitude. Give thy servant therefore an understanding heart to judge thy people, that I may discern between good and evil; for who is able to judge this thy great people? And the speech pleased the Lord, that Solomon had asked this thing. And God said unto him, Because thou hast asked this thing, and hast not asked for thyself long life, neither hast asked riches for thyself, nor hast asked the life of thine enemies, but hast asked for thyself understanding to discern justice; behold, I have done according to thy word: lo, I have given thee a wise and an understanding heart; so that there hath been none like thee before thee, neither after thee shall any arise like unto thee. And I have also given thee that which thou hast not asked, both riches and honor, so that there shall not be any among the kings like unto thee, all thy days. And if thou wilt walk in my ways, to keep my statutes and my commandments, as thy father David did walk, then I will lengthen thy days. 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. Then there came two women that were harlots, unto the king, and stood before him. And the one woman said, Oh, my lord, I and this woman dwell in one house; and I was delivered of a child with her in the house. And it came to pass the third day after I was delivered, that this woman was delivered also; and we were together; there was no stranger with us in the house, save we two in the house. And this woman’s child died in the night, because she lay upon it. And she arose at midnight, and took my son from beside me, while thy handmaid slept, and laid it in her bosom, and laid her dead child in my bosom. And when I rose in the morning to give my child suck, behold, it was dead; but when I had looked at it in the morning, behold, it was not my son, whom I did bear. And the other woman said, Nay; but the living is my son, and the dead is thy son. And this said, No; but the dead is thy son, and the living is my son. Thus they spake before the king. Then said the king, The one saith, This is my son that liveth, and thy son is the dead: and the other saith, Nay; but thy son is the dead, and my son is the living. And the king said, Fetch me a sword. And they brought a sword before the king. And the king said, Divide the living child in two, and give half to the one, and half to the other. Then spake the woman whose the living child was unto the king, for her heart yearned over her son, and she said, Oh, my lord, give her the living child, and in no wise slay it. But the other said, It shall be neither mine nor thine; divide it. Then the king answered and said, Give her the living child, and in no wise slay it: she is the mother thereof. 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 justice.

1 Kings 3:2-28 New King James Version (NKJV)

Meanwhile the people sacrificed at the high places, because there was no house built for the name of the LORD until those days. And Solomon loved the LORD, walking in the statutes of his father David, except that he sacrificed and burned incense at the high places. Now the king went to Gibeon to sacrifice there, for that was the great high place: Solomon offered a thousand burnt offerings on that altar. At Gibeon the LORD appeared to Solomon in a dream by night; and God said, “Ask! What shall I give you?” And Solomon said: “You have shown great mercy to Your servant David my father, because he walked before You in truth, in righteousness, and in uprightness of heart with You; You have continued this great kindness for him, and You have given him a son to sit on his throne, as it is this day. Now, O LORD my God, You have made Your servant king instead of my father David, but I am a little child; I do not know how to go out or come in. And Your servant is in the midst of Your people whom You have chosen, a great people, too numerous to be numbered or counted. Therefore give to Your servant an understanding heart to judge Your people, that I may discern between good and evil. For who is able to judge this great people of Yours?” The speech pleased the Lord, that Solomon had asked this thing. Then God said to him: “Because you have asked this thing, and have not asked long life for yourself, nor have asked riches for yourself, nor have asked the life of your enemies, but have asked for yourself understanding to discern justice, behold, I have done according to your words; see, I have given you a wise and understanding heart, so that there has not been anyone like you before you, nor shall any like you arise after you. And I have also given you what you have not asked: both riches and honor, so that there shall not be anyone like you among the kings all your days. So if you walk in My ways, to keep My statutes and My commandments, as your father David walked, then I will lengthen your days.” Then Solomon awoke; and indeed it had been a dream. And he came to Jerusalem and stood before the ark of the covenant of the LORD, offered up burnt offerings, offered peace offerings, and made a feast for all his servants. Now two women who were harlots came to the king, and stood before him. And one woman said, “O my lord, this woman and I dwell in the same house; and I gave birth while she was in the house. Then it happened, the third day after I had given birth, that this woman also gave birth. And we were together; no one was with us in the house, except the two of us in the house. And this woman’s son died in the night, because she lay on him. So she arose in the middle of the night and took my son from my side, while your maidservant slept, and laid him in her bosom, and laid her dead child in my bosom. And when I rose in the morning to nurse my son, there he was, dead. But when I had examined him in the morning, indeed, he was not my son whom I had borne.” Then the other woman said, “No! But the living one is my son, and the dead one is your son.” And the first woman said, “No! But the dead one is your son, and the living one is my son.” Thus they spoke before the king. And the king said, “The one says, ‘This is my son, who lives, and your son is the dead one’; and the other says, ‘No! But your son is the dead one, and my son is the living one.’ ” Then the king said, “Bring me a sword.” So they brought a sword before the king. And the king said, “Divide the living child in two, and give half to one, and half to the other.” Then the woman whose son was living spoke to the king, for she yearned with compassion for her son; and she said, “O my lord, give her the living child, and by no means kill him!” But the other said, “Let him be neither mine nor yours, but divide him.” So the king answered and said, “Give the first woman the living child, and by no means kill him; she is his mother.” And all Israel heard of the judgment which the king had rendered; and they feared the king, for they saw that the wisdom of God was in him to administer justice.

1 Kings 3:2-28 Amplified Bible (AMP)

But [in the meantime] the people were still sacrificing [to God] on the high places (hilltops) [as the pagans did to their idols], for there was no [permanent] house yet built for the Name of the LORD. Now Solomon loved the LORD, walking [at first] in the statutes of David his father, except [for the fact that] he sacrificed and burned incense in the high places [ignoring the law that required all sacrifices to be offered at the tabernacle]. [Lev 17:3, 4] The king went to Gibeon [near Jerusalem, where the tabernacle and the bronze altar stood] to sacrifice there, for that was the great high place. Solomon offered a thousand burnt offerings on that altar. In Gibeon the LORD appeared to Solomon in a dream at night; and God said, “Ask [Me] what I shall give you.” Then Solomon said, “You have shown Your servant David my father great lovingkindness, because he walked before You in faithfulness and righteousness and with uprightness of heart toward You; and You have kept for him this great lovingkindness, in that You have given him a son to sit on his throne, as it is today. So now, O LORD my God, You have made Your servant king in place of David my father; and as for me, I am but a little boy [in wisdom and experience]; I do not know how to go out or come in [that is, how to conduct business as a king]. Your servant is among Your people whom You have chosen, a great people who are too many to be numbered or counted. So give Your servant an understanding mind and a hearing heart [with which] to judge Your people, so that I may discern between good and evil. For who is able to judge and rule this great people of Yours?” [James 1:5] Now it pleased the Lord that Solomon had asked this thing. God said to him, “Because you have asked this and have not asked for yourself a long life nor for wealth, nor for the lives of your enemies, but have asked for yourself understanding to recognize justice, behold, I have done as you asked. I have given you a wise and discerning heart (mind), so that no one before you was your equal, nor shall anyone equal to you arise after you. I have also given you what you have not asked, both wealth and honor, so that there will not be anyone equal to you among the kings, for all your days. If you walk in My ways, keeping My statutes and My commandments, as your father David did, then I will lengthen your days.” Then Solomon awoke, and he realized that it was a dream. He came [back] to Jerusalem and stood before the ark of the covenant of the LORD; he offered burnt offerings and peace offerings, and he prepared a feast for all his servants. [2 Sam 6:17] Then two women who were prostitutes came to the king and stood before him. And the one woman said, “O my lord, this woman and I live in the same house; and I gave birth to a child while she was in the house. And on the third day after I gave birth, this woman also gave birth. And we were [alone] together; no one else was with us in the house, just we two. Now this woman’s son died during the night, because she lay on him [and smothered him]. So she got up in the middle of the night and took my son from [his place] beside me while your maidservant was asleep, and laid him on her bosom, and laid her dead son on my bosom. When I got up in the morning to nurse my son, behold, he was dead. But when I examined him carefully in the morning, behold, it was not my son, the one whom I had borne.” Then the other woman said, “No! For my son is the one who is living, and your son is the dead one.” But the first woman said, “No! For your son is the dead one, and my son is the living one.” [This is how] they were speaking before the king. Then the king said, “This woman says, ‘This is my son, the one who is alive, and your son is the dead one’; and the other woman says, ‘No! For your son is the dead one, and my son is the one who is alive.’ ” Then the king said, “Bring me a sword.” So they brought a sword before the king. Then the king said, “Cut the living child in two, and give half to the one [woman] and half to the other.” Then the woman whose child was the living one spoke to the king, for she was deeply moved over her son, “O my lord, give her the living child, and by no means kill him.” But the other said, “He shall be neither mine nor yours; cut him!” Then the king said, “Give the first woman [who is pleading for his life] the living child, and by no means kill him. She is his mother.” When all [the people of] Israel heard about the judgment which the king had made, they [were in awe and reverently] feared the king, for they saw that the wisdom of God was within him to administer justice.

1 Kings 3:2-28 English Standard Version Revision 2016 (ESV)

The people were sacrificing at the high places, however, because no house had yet been built for the name of the LORD. Solomon loved the LORD, walking in the statutes of David his father, only he sacrificed and made offerings at the high places. And the king went to Gibeon to sacrifice there, for that was the great high place. Solomon used to offer a thousand burnt offerings on that altar. At Gibeon the LORD appeared to Solomon in a dream by night, and God said, “Ask what I shall give you.” And Solomon said, “You have shown great and steadfast love to your servant David my father, because he walked before you in faithfulness, in righteousness, and in uprightness of heart toward you. And you have kept for him this great and steadfast love and have given him a son to sit on his throne this day. And now, O LORD my God, you have made your servant king in place of David my father, although I am but a little child. I do not know how to go out or come in. And your servant is in the midst of your people whom you have chosen, a great people, too many to be numbered or counted for multitude. Give your servant therefore an understanding mind to govern your people, that I may discern between good and evil, for who is able to govern this your great people?” It pleased the Lord that Solomon had asked this. And God said to him, “Because you have asked this, and have not asked for yourself long life or riches or the life of your enemies, but have asked for yourself understanding to discern what is right, behold, I now do according to your word. Behold, I give you a wise and discerning mind, so that none like you has been before you and none like you shall arise after you. I give you also what you have not asked, both riches and honor, so that no other king shall compare with you, all your days. And if you will walk in my ways, keeping my statutes and my commandments, as your father David walked, then I will lengthen your days.” And Solomon awoke, and behold, it was a dream. Then he came to Jerusalem and stood before the ark of the covenant of the Lord, and offered up burnt offerings and peace offerings, and made a feast for all his servants. Then two prostitutes came to the king and stood before him. The one woman said, “Oh, my lord, this woman and I live in the same house, and I gave birth to a child while she was in the house. Then on the third day after I gave birth, this woman also gave birth. And we were alone. There was no one else with us in the house; only we two were in the house. And this woman’s son died in the night, because she lay on him. And she arose at midnight and took my son from beside me, while your servant slept, and laid him at her breast, and laid her dead son at my breast. When I rose in the morning to nurse my child, behold, he was dead. But when I looked at him closely in the morning, behold, he was not the child that I had borne.” But the other woman said, “No, the living child is mine, and the dead child is yours.” The first said, “No, the dead child is yours, and the living child is mine.” Thus they spoke before the king. Then the king said, “The one says, ‘This is my son that is alive, and your son is dead’; and the other says, ‘No; but your son is dead, and my son is the living one.’” And the king said, “Bring me a sword.” So a sword was brought before the king. And the king said, “Divide the living child in two, and give half to the one and half to the other.” Then the woman whose son was alive said to the king, because her heart yearned for her son, “Oh, my lord, give her the living child, and by no means put him to death.” But the other said, “He shall be neither mine nor yours; divide him.” Then the king answered and said, “Give the living child to the first woman, and by no means put him to death; she is his mother.” And all Israel heard of the judgment that the king had rendered, and they stood in awe of the king, because they perceived that the wisdom of God was in him to do justice.