Anas reported Allah's Apostle (ﷺ) as saying like this, but he narrated it through another chain of transmitters.
Sahih Muslim Book 54, Hadith 168