Sahih al-Bukhari Book 34, Hadith 36
The Prophet (ﷺ) said "Certainly a time will come when people will not bother to know from where they earned the money, by lawful means or unlawful means." (See Hadith no. 2050)
The Prophet (ﷺ) aid, "The buyer and the seller have the option to cancel or to confirm the deal, as long as they have not parted or till they part, and if they spoke the truth and told each other the defects of the things, then blessings would be in their deal, and if they hid something and told lies, the blessing of the deal would be lost."
When the last Verses of Surat al- Baqara were revealed, the Prophet (ﷺ) recited them in the mosque and proclaimed the trade of alcohol as illegal.