“Whoever becomes the master of a Mahram relative (with whom marriage is not lawful), he becomes free.”
Sunan Ibn Majah Book 19, Hadith 13