Sunan Ibn Majah, Book 19, Hadith 2620 (In-Book) ⓘ
It was narrated from Samurah bin Jundub that the Prophet said: “Whoever becomes the master of a Mahram relative (with whom marriage is not lawful), he becomes free.”
حَدَّثَنَا عُقْبَةُ بْنُ مُكْرَمٍ، وَإِسْحَاقُ بْنُ مَنْصُورٍ، قَالاَ حَدَّثَنَا مُحَمَّدُ بْنُ بَكْرٍ الْبُرْسَانِيُّ، عَنْ حَمَّادِ بْنِ سَلَمَةَ، عَنْ قَتَادَةَ، وَعَاصِمٍ، عَنِ الْحَسَنِ، عَنْ سَمُرَةَ بْنِ جُنْدُبٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " مَنْ مَلَكَ ذَا رَحِمٍ مَحْرَمٍ فَهُوَ حُرٌّ " .
also referenced under: Hadith 2524 (Reference) & Volume 3, Book 19, Hadith 2524 (DarusSalam)