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