Ibn Wahb (may Allah have mercy on him) also mentions something similar, stating that he was alluding to Sayyiduna Ibn Abbas (may Allah be pleased with them both), and he added at the end of it that Ibn Shihab (may Allah have mercy on him) said: Ubaydullah (may Allah have mercy on him) informed me that Sayyiduna Ibn Abbas (may Allah be pleased with them both) used to give fatwas that mut'ah was permissible. When the people of knowledge criticised him for it, Ibn Abbas (may Allah be pleased with them both) refused to retract his fatwa, until some poets began reciting these verses about him: O companion, do you have any need among the young women of Ibn Abbas? Do you have any need of a soft, delicate one who will be your lodging until the people return? He said: Then the people of knowledge's disgust at it and their aversion to those women increased further, until these verses were composed.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 14165