Sunan Abi Dawud — The Book of Manumission of Slaves — Hadith No: 3950
Translation
Narrated Umar ibn al-Khattab: Qatadah reported Umar ibn al-Khattab (may Allah be pleased with him) as saying: If anyone gets possession of a relative who is within the prohibited degrees, that person becomes free