Amir bin Rabia reported,

A man from Thakeef known by the kunya Abu Tamam presented a large skin of wine as a gift to the Messenger of Allah ﷺ. The Messenger of Allah ﷺ said, "It has been made unlawful, Abu Tamam."He asked, "Messenger of Allah, may I sell it and use the price?"The Prophet ﷺ replied, "The One who forbade drinking it has forbidden its price."

Azami 5787

Sahih

عن عامر بن ربيعة

أن رجلا من ثقيف يكنى أبا تمام أهدى إلى رسول الله ﷺ راوية خمر، فقال رسول الله ﷺ: إنها قد حرمت يا أبا تمام فقال له: يا رسول الله، فأستنفق ثمنها؟ فقال النبي ﷺ: إن الذي حرم شربها حرم ثمنها.

الأعظمي 5787صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sales
Chapter
Prohibited sales
Section
Prohibition of selling forbidden items such as wine, swine, carrion, idols, and blood, because they are inherently impure
Numbering
Jami al-Kamil 5787 (2nd edition)
Azami 5787