Sahih al-Bukhari 3483
Book 60: Prophets · Narrated by Abu Masud
Arabic
حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ، عَنْ زُهَيْرٍ، حَدَّثَنَا مَنْصُورٌ، عَنْ رِبْعِيِّ بْنِ حِرَاشٍ، حَدَّثَنَا أَبُو مَسْعُودٍ، عُقْبَةُ قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم " إِنَّ مِمَّا أَدْرَكَ النَّاسُ مِنْ كَلاَمِ النُّبُوَّةِ، إِذَا لَمْ تَسْتَحِي فَافْعَلْ مَا شِئْتَ ".
English translation
Narrated Abu Masud: `Uqba said: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
Reference: Sahih al-Bukhari 3483, Book of Prophets. English translation by Dr. Muhammad Muhsin Khan.