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 what has remained and reached us of the words of the earlier prophethood is this: If you have no shame, then do as you wish."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14731