The Prophet (ﷺ) prohibited to drink the milk of the animal which feeds on filth.
Sunan Abi Dawud Book 28, Hadith 51