The story
From a story in the Old Testament, in which King Solomon ruled between two prostitutes, both claiming to be the mother of a baby, by threatening to cut the baby into two. The actual mother begged for her child while the fake one was indifferent towards Solomon's threat.
Etymology from Wiktionary, CC BY-SA 4.0.