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 light their lamps with it."He replied, "No, it is forbidden."Then the Messenger of Allah ﷺ added, "May Allah destroy the Jews. Allah forbade them the fats of animals, yet they melted it down, sold it, and consumed its price."
حدثنا قتيبة حدثنا الليث عن يزيد بن أبي حبيب عن عطاء بن أبي رباح
أنه سمع رسول الله ﷺ عام الفتح وهو بمكة يقول إن الله ورسوله حرم بيع الخمر والميتة والخنزير والأصنام فقيل يا رسول الله أرأيت شحوم الميتة فإنه يطلى بها السفن ويدهن بها الجلود ويستصبح بها الناس قال لا هو حرام ثم قال رسول الله ﷺ عند ذلك قاتل الله اليهود إن الله حرم عليهم الشحوم فأجملوه ثم باعوه فأكلوا ثمنه
Graded muttafaq alayh. Bukhari transmitted it in the Book of Sales, chapter on the sale of carrion and idols, hadith 2236, and Muslim, hadith 1581, from Qutayba, with the same wording.On this topic, there is also a narration from Umar [Bukhari, hadith 2223, and Muslim, hadith 1582] and Ibn Abbas [Abu Dawud, hadith 3488].