The speech of Aristophanes in Plato's Symposium refers to this.
Aristophanes describes people as once being two people in one, the prior form being composed of a man and a woman, two men, or two women. After people were divided by Zeus the halves sought partners like their other halves.