The Messenger of Allah ﷺ came to one of the Ansar, who took up the knife to slaughter an animal for the Messenger of Allah ﷺ. The Messenger of Allah ﷺ said to him, "Beware of slaughtering the milk-giving one."
حدثنا أبو بكر بن أبي شيبة حدثنا خلف بن خليفة ح و حدثنا عبد الرحمن بن إبراهيم أنبأنا مروان بن معاوية جميعا عن يزيد بن كيسان عن أبي حازم
أن رسول الله ﷺ أتى رجلا من الأنصار فأخذ الشفرة ليذبح لرسول الله ﷺ فقال له رسول الله ﷺ إياك والحلوب
No references are available.
Sourced from Sahih Muslim, Book of Drinks, chapter "The Permissibility of Bringing Along Someone Else to the House of One Whose Approval of That Is Trusted," etc., no. 140/2038, from Ibn Abu Shayba, with it in full.