proverb

Where there is muck there's brass

money

meaning that

Where there is manure (and mud) there will be good crop and consequently good money for the farmer. Μetaphorically, it is meaning that there are good money in dirty or unpleasant jobs.

Also

brass is a slang word for money