24 So the king said, "Bring me a sword," and they brought a sword before the king. 25 The king said, "Divide the living boy in two; then give half to the one, and half to the other." 26 But the woman whose son was alive said to the king-because compassion for her son burned within her-"Please, my lord, give her the living boy; certainly do not kill him!" The other said, "It shall be neither mine nor yours; divide it." 27 Then the king responded: "Give the first woman the living boy; do not kill him. She is his mother." 28 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 execute justice.

Matthew Henry's Commentary on 1 Kings 3:24-28

Commentary on 1 Kings 3:16-28

(Read 1 Kings 3:16-28)

An instance of Solomon's wisdom is given. Notice the difficulty of the case. To find out the true mother, he could not try which the child loved best, and therefore tried which loved the child best: the mother's sincerity will be tried, when the child is in danger. Let parents show their love to their children, especially by taking care of their souls, and snatching them as brands out of the burning. By this and other instances of the wisdom with which God endued him, Solomon had great reputation among his people. This was better to him than weapons of war; for this he was both feared and loved.