I heard Allah's Messenger (ﷺ) saying like this.

Sahih Muslim Book 15, Hadith 585