1 Kings 3:22-28

22 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.
23 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.'"
24 And the king said, "Bring me a sword." So a sword was brought before the king.
25 And the king said, "Divide the living child in two, and give half to the one, and half to the other."
26 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 slay it." But the other said, "It shall be neither mine nor yours; divide it."
27 Then the king answered and said, "Give the living child to the first woman, and by no means slay it; she is its mother."
28 And all Israel heard of the judgment which the king had rendered; and they stood in awe of the king, because they perceived that the wisdom of God was in him, to render justice.