The Prophet ﷺ forbade milking livestock without the permission of their owners.
حدثنا يحيى عن عبيد الله عن نافع
عن النبي ﷺ نهى أن تحتلب المواشي من غير إذن أهلها
No references are available.
Its chain of transmission is sahih, and it is a repetition of 4471 and an abridgment of 4505.