It is narrated from Sayyiduna Abu Mas'ud al-Ansari (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Among the words of the earlier prophethood that have reached the people is this saying: If you have no shame, then do whatever you wish."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14712