(3) باب السُّؤَالِ عَنْ أَرْكَانِ الْإِسْلَامِ
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.
Reference: Sahih Muslim 12 b
In-book reference: Book 1, Hadith 11
USC-MSA web (English) reference(deprecated numbering scheme): Book 1, Hadith 10