The Messenger of Allah ﷺ said, "People, Allah is pure and accepts only what is pure. Allah has commanded the believers with what He commanded the messengers. He said, 'Messengers, eat from the good things and act righteously. Indeed, I am Aleem of what you do' [Muminun 23:51]. And He said, 'You who believe, eat from the good things We have provided for you' [Baqarah 2:172]."Then he mentioned a man who undertakes a long journey, dishevelled and dust-stained, stretching out his hands to the sky, crying, "Lord, Lord!" Yet his food is unlawful, his drink is unlawful, his clothing is unlawful, and he has been nourished by what is unlawful. So how could such a person's prayer be answered?
قال رسول الله ﷺ: أيها الناس إن الله طيب لا يقبل إلا طيبا، وإن الله أمر المؤمنين بما أمر به المرسلين، فقال: {يأيها الرسل كلوا من الطيبت واعملوا صلحا إني بما تعملون عليم} [المؤمنون: ٥١] وقال {يأيها الذين ءامنوا كلوا من طيبات ما رزقنكم} ثم ذكر: الرجل يطيل السفر، أشعث أغبر، يمد يديه إلى السماء، يا رب يا رب، ومطعمه حرام، ومشربه حرام، وملبسه حرام، وغذي بالحرام، فأنى يستجاب لذلك؟
Muslim narrated it in the Book of Zakat (1015), from Abu Kurayb Muhammad bin Ala, who said, Abu Usama told us, who said, Fudayl bin Marzuk told us, who said, Adi bin Thabit told me, from Abu Hazim, from Abu Hurairah, and he related it.