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.'" (DE)
English reference (DE): Vol. 5, Book 37, Hadith 4183 (DE)
Arabic reference (DE): Book 37, Hadith 4323 (DE)