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