The Prophet ﷺ said, "What is forbidden through nursing is forbidden through lineage."
أخبرنا محمد بن بشار قال حدثنا يحيى عن مالك عن عبد الله بن أبي بكر عن عمرة
عن النبي ﷺ قال يحرم من الرضاع ما يحرم من النسب
No references are available.
Bukhari reported it in the Book of Testimonies, chapter "Testimony Regarding Lineage and Suckling," etc., no. 2646, and Muslim in the Book of Suckling, chapter "What Is Prohibited by Suckling Is What Is Prohibited by Lineage," no. 1444, from the hadith of Malik with this same chain, and it is found in Muwatta (Yahya): 2/601, and in Al-Kubra, no. 5435.