We were forbidden in the Holy Qur'an that we should ask about anything from the Messenger…

Sahih Muslim Book 1 Hadith 11

Sahih Muslim #12 b

The Book of Faith 1:11

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.

Chapter: Asking about the pillars of Islam

Grade: Sahih