He heard the Messenger of Allah ﷺ say, during the year of the Conquest while he was in Makkah, "Allah and His Messenger have forbidden the sale of wine, carrion, swine, and idols."Someone asked, "Messenger of Allah, what about the fat of carrion? It is used to coat ships, to grease leather, and people use it to fuel their lamps."He replied, "No, it is forbidden."Then the Messenger of Allah ﷺ added, "May Allah destroy the Jews. When Allah
forbade them the fat of animals, they melted it down, sold it, and consumed its price."
أخبرنا قتيبة قال حدثنا الليث عن يزيد بن أبي حبيب عن عطاء بن أبي رباح
أنه سمع رسول الله ﷺ عام الفتح وهو بمكة يقول إن الله عز وجل ورسوله حرم بيع الخمر والميتة والخنزير والأصنام فقيل يا رسول الله أرأيت شحوم الميتة فإنه يطلى بها السفن ويدهن بها الجلود ويستصبح بها الناس فقال لا هو حرام فقال رسول الله ﷺ عند ذلك قاتل الله اليهود إن الله عز وجل لما حرم عليهم الشحوم جملوه ثم باعوه فأكلوا ثمنه
Bukhari narrated it in the Book of Trade, chapter on selling carrion and idols, hadith no. 2236, and Muslim in the Book of Sharecropping, chapter on the prohibition of selling wine, carrion, pigs, and idols, hadith no. 1581, both from Qutayba with this same chain. It also appears in Kubra, hadith no. 4582.