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)
Sahih al-Bukhari Book 34, Hadith 36