Ibn Mas'ud (RAA) narrated that the Messenger of Allah (ﷺ) said:
"One of the things people have learned from the words of the earliest prophecies is, "If you don't feel any shame, do whatever you like." Related by Al-Bukhari. (JA)
English reference (JA): Book 16, Hadith 1568 (JA)
Arabic reference (JA): Book 16, Hadith 1525 (JA)