Then came there two women that were harlots unto the king, and stood before him, seeking a decision in a difficult case. The story is told to show that God had actually endued Solomon with unusual wisdom.
Related Commentaries of 1 Kings 3:16
1 Kings 3:16
16 Then came there two women, that were harlots, unto the king, and stood before him.