(78) باب إِذَا لَمْ تَسْتَحِي فَاصْنَعْ مَا شِئْتَ
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 4)
Reference: Sahih al-Bukhari 6120
In-book reference: Book 78, Hadith 147
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 73, Hadith 141