Two women in the same house both had babies. When one died his mother swapped babies with the other woman. Solomon ordered the baby split in half and divided between them. The woman who asked Solomon not to do this was declared the real mother.
Source:
1st Kings 3