Ayesha reported,

The Prophet ﷺ did something as a concession, but a group of people abstained from it out of piety. When word of this reached the Prophet ﷺ, he praised Allah and glorified Him, then said, "What is the matter with people who abstain from something I myself do? By Allah, I am the most knowledgeable of them about Allah and the most fearful of Him among them."

Bukhari 7301

Sahih

حدثنا عمر بن حفص حدثنا أبي حدثنا الأعمش حدثنا مسلم عن مسروق قال قالت

عائشة رضي الله عنها

صنع النبي ﷺ شيئا ترخص فيه وتنزه عنه قوم فبلغ ذلك النبي ﷺ فحمد الله وأثنى عليه ثم قال ما بال أقوام يتنزهون عن الشيء أصنعه فوالله إني أعلمهم بالله وأشدهم له خشية

البخاري 7301صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhering to the Book and the Sunnah
Chapter
What is disliked of delving too deep, disputing about knowledge, extremism in religion, and innovations
Numbering
Darussalam 7301
Bukhari 7301