Sunan Ibn Majah, Book 37, Hadith 100 (Ibn Majah 4203)

Mu’awiyah bin Abu Sufyan said:

“I heard the Messenger of Allah (ﷺ) say: ‘Deeds are like vessels. If the lower part is good then the upper part will be good, and if the lower part is bad then the upper part will be bad.’”