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