Sahih al-Bukhari, Book 34, Hadith 13 (Bukhari 1985)

Narrated Abu Huraira:

The Prophet (ﷺ) said, "A time will come when one will not care how one gains one's money, legally or illegally."