Sunan Ibn Majah, Book 19, Hadith 14 (Ibn Majah 2527)

It was narrated from Ibn`Umar that the Messenger of Allah (ﷺ) said:

“Whoever becomes the master of a Mahram relative, he becomes free.”