Sahih al-Bukhari, Book 60, Hadith 151 (In-Book)

Narrated Abu Mus'ud: 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."

حَدَّثَنَا آدَمُ، حَدَّثَنَا شُعْبَةُ، عَنْ مَنْصُورٍ، قَالَ سَمِعْتُ رِبْعِيَّ بْنَ حِرَاشٍ، يُحَدِّثُ عَنْ أَبِي مَسْعُودٍ، قَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ إِنَّ مِمَّا أَدْرَكَ النَّاسُ مِنْ كَلاَمِ النُّبُوَّةِ إِذَا لَمْ تَسْتَحِي فَاصْنَعْ مَا شِئْتَ ‏" ‏‏.‏

sunnah.com