It wasnarrated from 'Uqbah bin 'Amr, Abu Mas'ud, that the Messengerof Allah (ﷺ) said:
"Among the words that people learned from theearlier Prophets are: 'If you feel no shame, then do as you wish.'" (TR)
English reference (TR): Vol. 5, Book 37, Hadith 4183 (TR)
Arabic reference (TR): Book 37, Hadith 4323 (TR)