Saad bin Abu Waqqas reported,

The Messenger of Allah ﷺ said, "The Muslim who commits the gravest offense against the Muslims is the one who asks about a matter that was not forbidden, and it becomes forbidden to the people because of his question."In Muamar's version, it reads, "a man who asks about something and probes into it." And in Yunus's version it says, from Amir bin Saad, that he heard Saad.

Muslim 6118

Sahih

و حدثنيه حرملة بن يحيى أخبرنا ابن وهب أخبرني يونس ح و حدثنا عبد بن حميد أخبرنا عبد الرزاق أخبرنا معمر كلاهما عن الزهري بهذا الإسناد وزاد في حديث معمر رجل سأل عن شيء ونقر عنه وقال في حديث يونس عامر بن سعد أنه سمع سعدا

مسلم 6118صحيح
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 6118
Muslim 6118