Aamir bin Sa’d narrated from his father that the Prophet ﷺ said: “Indeed, the greatest offender among the Muslims is the one who asked about something that was not forbidden, and because of his question, it was made forbidden.”
Hadith Referenceمسند الإمام الشافعي / كتاب فضائل قريش وغيرهم وأبواب متفرقة / 1799
Hadith Takhrijاخرجه مسلم ، الفضائل، باب توقیره ، وترك اكثار سؤاله عما لا ضرورة .... الخ (2358)۔
It is narrated from Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whatever (matter) I have left for you, then leave me in that as well, for the nations before you were destroyed because of their excessive (unnecessary) questioning and their disagreements with their prophets. And whatever I command you to do, do as much of it as you are able, and whatever I forbid you from, then abstain from it."
Hadith Referenceمسند الإمام الشافعي / كتاب فضائل قريش وغيرهم وأبواب متفرقة / 1801
Hadith Takhrijاخرجه البخارى، الاعتصام بالكتاب والسنة، باب الاقتداء بسنن رسول الله (728) ومسلم، الحج، باب فرض الحج مرة في العمر (1337)۔
Through another chain, a narration with the same meaning as the previous hadith is reported from Abu Hurairah (may Allah be pleased with him) from the Prophet (ﷺ).
Hadith Referenceمسند الإمام الشافعي / كتاب فضائل قريش وغيرهم وأبواب متفرقة / 1802
Urwah (may Allah have mercy on him) narrated that the Messenger of Allah (ﷺ) was constantly asked about the Hour until Allah the Exalted revealed this verse: "What concern is it of yours to declare it?" (Surah An-Nazi'at: 43).
Hadith Referenceمسند الإمام الشافعي / كتاب فضائل قريش وغيرهم وأبواب متفرقة / 1803
Hadith Takhrijصحیح ثبت موصولاً : اخرجه اسحاق بن راهويه في مسنده (777) والطبري في تفسيره: 49/3 ـ وصححه الحاكم : (1/ 5 - 2/ 513)۔