Sahih Bukhari | Volume 9 | Hadith Number 404

Narrated by '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."