1 Kings 3:25

preferring wisdom, obtains wisdom, riches, and honour.
Overview - 1 Kings 3
Solomon marries Pharaoh's daughter.
High places being in use, Solomon sacrifices at Gibeon.
Solomon at Gibeon, in the choice which God gave him,
16 Solomon's judgment makes him renowned.
Treasury of Scripture Knowledge

1 Kings 3:25  (King James Version)
And the king said, Divide the living child in two, and give half to the one, and half to the other.

This was apparently a very strange decision; but Solomon saw that the only way to discover the real mother was by the affection and tenderness should would necessarily shew to her offspring. The plan was tried, and succeeded; and it was a proof of his sound judgment, penetration, and acquaintance with the human heart, or rather, of his extraordinary and supernatural wisdom
See ver. 28. The two following instances are in some faint manner to be compared to Solomon's decision, inasmuch as they also work upon the human sympathies. Suetonius, in his Life of the emperor Claudian, tells us, that this emperor discovered a woman to be the real mother of a young man, whom she refused to acknowledge, by commanding her to marry him, the proofs being doubtful on both sides; for, rather than commit incest, she confessed the truth. Diodorus Siculus also informs us, that Ariopharnes, king of Thrace, being appointed to decided between three young men, each of whom professed to be the son of the deceased king of the Cimmerians, and claimed the succession, discovered the real son by ordering each to shoot an arrow into the dead body of the king: two of them did this without hesitation; but the real son of the deceased monarch refused.
Proverbs 25:8