Elective Affinities
Goethe used the concept in his novel Elective Affinities (1809).