It is narrated on the authority of Thabit that Anas said: We were forbidden in the Holy Qur'an that we should ask about anything from the Messenger of Allah (ﷺ) and then Anas reported the hadith in similar words.
Hadith ReferenceSahih Muslim / The Book of Faith / Hadith: 12
Hadith Gradingمحدثین:أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij«أحاديث صحيح مسلم كلها صحيحة ، تقدم تخريجه في الحديث السابق برقم (102) »