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: "The last of the words of the earlier prophethood was this: If you have no shame, then do as you wish."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14729