The Prophet (ﷺ) said, "A time will come when one will not care how one gains one's money, legally or illegally."
Sahih al-Bukhari Book 34, Hadith 13