Volume 4 · Book 56 · Hadith 690
Narrated Abu Masud Uqba: The Prophet said, "One of the sayings of the prophets which the people have got, is. 'If you do not feel ashamed, then do whatever you like."
— Sahih Bukhari, Volume 4, Book 56: Virtues and Merits of the Prophet (pbuh) and his Companions, Hadith #690