Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said
O people, Allah is pure and He accepts only what is pure. Verily, Allah has commanded the believers as He commanded His Messengers. Allah said: O Messengers, eat from good things and act righteously, for I know what you do (23:51). And Allah said: O you who believe, eat from good things We have provided for you. (2:172)
Abu Huraira added:
Then the Prophet mentioned a man who traveled far, becoming disheveled and dusty and he raises his hands to the sky, saying, “O Lord! O Lord!” while his food is unlawful, his drink is unlawful, his clothing is unlawful, and he is nourished by the unlawful, so how can he be answered?
Source: Sahih Muslim 1015, Grade: Sahih