Sahih al-Bukhari, Book 96, Hadith 32 (Bukhari 7024)

Narrated `Aisha:

The Prophet (ﷺ) did something as it was allowed from the religious point of view but some people refrained from it. When the Prophet (ﷺ) heard of that, he, after glorifying and praising Allah, said, "Why do some people refrain from doing something which I do? By Allah, I know Allah more than they."