Saad bin Abu Waqqas reported,

The Messenger of Allah ﷺ said, "The Muslim who commits the greatest offense against the Muslims is one who asks about something that had not been forbidden to them, and it then becomes forbidden to them because of his question."

Muslim 6116

Sahih

حدثنا يحيى بن يحيى أخبرنا إبراهيم بن سعد عن ابن شهاب

عن عامر بن سعد عن أبيه قال

قال رسول الله ﷺ إن أعظم المسلمين في المسلمين جرما من سأل عن شيء لم يحرم على المسلمين فحرم عليهم من أجل مسألته

مسلم 6116صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues
Chapter
Honoring him ﷺ and refraining from asking him excessive questions about what is unnecessary or not
Numbering
Darussalam 6116
Muslim 6116