The Prophet ﷺ said, "What is forbidden through breastfeeding is forbidden through birth."
حدثنا عبد الله بن مسلمة عن مالك عن عبد الله بن دينار عن سليمان بن يسار عن عروة
أن النبي ﷺ قال يحرم من الرضاعة ما يحرم من الولادة
No references are available.
[Its chain is sahih] Tirmidhi related it, in the Book of Suckling, the chapter "What Breastfeeding Prohibits Is What Lineage Prohibits," no. 1147, from the hadith of Malik through this route, and he said, hasan sahih. It is also found in the Muwatta (Yahya's recension), 2/607.