The Messenger of Allah (ﷺ) forbade riding the camel which feeds on filth and drinking its milk.
Sunan Abi Dawud Book 28, Hadith 52