Sahih al-Bukhari 6120
Book 78: Good Manners and Form (Al-Adab) · Narrated by Abu Mas`ud
Arabic
حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ، حَدَّثَنَا زُهَيْرٌ، حَدَّثَنَا مَنْصُورٌ، عَنْ رِبْعِيِّ بْنِ حِرَاشٍ، حَدَّثَنَا أَبُو مَسْعُودٍ، قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم " إِنَّ مِمَّا أَدْرَكَ النَّاسُ مِنْ كَلاَمِ النُّبُوَّةِ الأُولَى إِذَا لَمْ تَسْتَحِي فَاصْنَعْ مَا شِئْتَ ".
English translation
Narrated Abu Mas`ud:The Prophet (ﷺ) said, 'One of the sayings of the early Prophets which the people have got is: If you don't feel ashamed (from Haya': pious shyness from committing religeous indiscretions) do whatever you like." (See Hadith No 690, 691, Vol)
Reference: Sahih al-Bukhari 6120, Book of Good Manners and Form (Al-Adab). English translation by Dr. Muhammad Muhsin Khan.