All forty hadith

The 40 Hadith of Imam an-Nawawi · Hadith 10

Allah is Good and accepts only good

Pure to the Pure

عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صلى الله عليه و سلم "إنَّ اللَّهَ طَيِّبٌ لَا يَقْبَلُ إلَّا طَيِّبًا، وَإِنَّ اللَّهَ أَمَرَ الْمُؤْمِنِينَ بِمَا أَمَرَ بِهِ الْمُرْسَلِينَ فَقَالَ تَعَالَى: "يَا أَيُّهَا الرُّسُلُ كُلُوا مِنْ الطَّيِّبَاتِ وَاعْمَلُوا صَالِحًا"، وَقَالَ تَعَالَى: "يَا أَيُّهَا الَّذِينَ آمَنُوا كُلُوا مِنْ طَيِّبَاتِ مَا رَزَقْنَاكُمْ" ثُمَّ ذَكَرَ الرَّجُلَ يُطِيلُ السَّفَرَ أَشْعَثَ أَغْبَرَ يَمُدُّ يَدَيْهِ إلَى السَّمَاءِ: يَا رَبِّ! يَا رَبِّ! وَمَطْعَمُهُ حَرَامٌ، وَمَشْرَبُهُ حَرَامٌ، وَمَلْبَسُهُ حَرَامٌ، وَغُذِّيَ بِالْحَرَامِ، فَأَنَّى يُسْتَجَابُ لَهُ؟"

The Messenger of Allah (ﷺ) said, “Allah the Almighty is Good and accepts only that which is good. And verily Allah has commanded the believers to do that which He has commanded the Messengers. So the Almighty has said: “O (you) Messengers! Eat of the tayyibat [all kinds of halal (legal) foods], and perform righteous deeds.” [23:51] and the Almighty has said: “O you who believe! Eat of the lawful things that We have provided you.” [2:172]” Then he (ﷺ) mentioned [the case] of a man who, having journeyed far, is disheveled and dusty, and who spreads out his hands to the sky saying “O Lord! O Lord!,” while his food is haram (unlawful), his drink is haram, his clothing is haram, and he has been nourished with haram, so how can [his supplication] be answered?

On the authority of Abu Hurayrah (ra):

The Prophet ﷺ gives us a picture that aches: a man on a long journey, dishevelled and dusty, who lifts his hands to the sky and cries, 'My Lord! My Lord!' Every sign says his prayer should be answered, the travel, the need, the raised hands, the desperate calling.

And then the Prophet ﷺ adds the heartbreaking turn: his food is unlawful, his drink unlawful, his clothing unlawful, and he is nourished by the forbidden, so how could he be answered? The hadith opens with a truth about Allah and closes with a truth about us.

Where this hadith comes from

It is narrated by Abu Hurayrah (ra) and recorded by Imam Muslim (no. 1015), graded sahih. Imam an-Nawawi placed it among his forty as one of the great comprehensive hadiths, because in a few lines it joins a truth about Allah, two commands from His Book, and a vivid warning drawn from life.

There is no need for a special occasion behind it: the Prophet (ﷺ) teaches a settled principle, that the Most Pure accepts only the pure, and then presses it home with the image of the dishevelled traveller. Its weight comes from its content, and from being agreed upon as authentic.

The key words

What it means, line by line

The Prophet (ﷺ) opens with Allah Himself: He is Tayyib, Pure, and accepts only what is pure. It is a description of the Most High before it is a demand on us. Then he notes that Allah commanded the believers with the same thing He commanded His messengers, reciting the order to eat of the good things and to act righteously, so that pure intake and pure deed stand side by side.

Then comes the traveller: far from home, dusty, hands raised, crying 'O Lord! O Lord!' Every outward sign says his du'a should rise. But his food, drink, and clothing are unlawful, and he is nourished by the forbidden, 'so how can it be answered?' The lesson is not that Allah is harsh, but that what we feed ourselves weighs heavily on our nearness to Him: the same self that worships is the self that eats and earns.

Pure, and accepting only the pure

The hadith begins: Allah is Tayyib, Pure and Good, and He accepts only what is pure and good. It is a statement about who Allah is before it is an instruction to us. The Most Pure draws near what resembles purity, sincere worship, clean earnings, a heart without deceit.

Then the Prophet ﷺ reads to the believers the same command Allah gave His messengers: eat from the good things, and do righteousness. The pure intake and the pure deed are spoken of together, as if the food on the table and the worship in the heart were branches of one tree.

The traveller whose prayer was not answered

Then the dusty traveller. Hold how much is right about him: he is in the very state in which prayers are answered, far from home, in need, hands stretched out, calling on his Lord by His Lordship. If anyone's du'a should rise, it is his.

But what he has fed himself blocks the door. The Prophet ﷺ is not saying Allah is harsh; He is the One who answers the desperate. He is showing how heavily what we consume weighs on what we are given, that a life nourished on the forbidden can muffle even the most earnest cry. It is a sobering mercy: a warning given precisely so we never become that man.

Guarding what enters

So this hadith turns the believer's attention to the doorways of the self: the mouth, the hands, the income. Without descending into the details of rulings, which belong to the scholars, it plants a single instinct: care about what you take in. Let your earnings be honest, your food clean, your gains free of harm to others.

Because worship is not sealed off from the rest of life. The hands you raise in du'a are the same hands that earned your bread. The Most Pure invites you to come to Him pure, inside and out.

Carry this with you

Purity is not only what you keep out of the heart, but what you let into the body and the home.

  • Allah is Pure (Tayyib).

    And He accepts only the pure: sincere worship, clean earnings, an honest heart. Like draws near to like.

  • Intake and worship are linked.

    The food on the table and the prayer in the heart are branches of one tree. Guard both.

  • The forbidden can block the door.

    Even an earnest, desperate du'a can be muffled by a life nourished on the unlawful. A sobering mercy.

  • Mind the doorways of the self.

    Care about your income, your food, your gains. Come to the Most Pure pure, inside and out.

A du'a to carry

رَبَّنَآ ءَاتِنَا فِى ٱلدُّنْيَا حَسَنَةً وَفِى ٱلْءَاخِرَةِ حَسَنَةً وَقِنَا عَذَابَ ٱلنَّارِ

Rabbana atina fid-dunya hasanatan wa fil-akhirati hasanatan wa qina 'adhab an-nar

Our Lord, give us in this world [that which is] good and in the Hereafter [that which is] good, and protect us from the punishment of the Fire. (Al-Baqarah 2:201)

A du'a for a pure life

A man stood in the desert with everything right about his prayer except what he had fed himself, and the door stayed shut. The Prophet ﷺ told us so that we would tend, quietly and daily, to what we let into our lives.

The Most Pure is near, and He answers. He only asks that we come toward Him in a way that resembles Him: honest hands, clean food, a sincere heart lifted in need.

O Allah, You are Pure and love purity. Make our earnings lawful, our food clean, and our hearts sincere, and let us raise our hands to You and be among those You answer. Give us good in this world and the next. Ameen.

The hadith is from sunnah.com: 'Allah is Good and accepts only that which is good,' narrated by Abu Hurayrah (ra), Sahih Muslim 1015, graded sahih. Qur'an citations (2:172 and 2:201) are in Uthmani script verified via quran.ai (ar-uthmani-minimal) with the Saheeh International translation. Per the editorial policy this stays with the spiritual meaning (purity of provision and heart) and does not enter the detailed fiqh of lawful earnings. FOR SCHOLAR REVIEW before publication.

Questions

What does 'Allah is Tayyib and accepts only the tayyib' mean?
Tayyib means pure, good, and wholesome. The hadith states that Allah Himself is Pure and accepts only what is pure: sincere worship, lawful earnings, and a clean heart. It is first a description of Allah, and from it flows the call for us to seek purity in what we do and consume.
Why was the traveller's du'a not answered?
Because, the Prophet ﷺ explained, his food, drink, and clothing were unlawful and he was nourished by the forbidden. Though he was in a state where prayers are normally answered, what he consumed stood in the way. The hadith warns how heavily unlawful intake weighs on a person's relationship with Allah.
Does this hadith give the rules of halal income and food?
It establishes the principle, that purity of provision matters deeply, without listing the detailed rulings, which belong to the scholars and the books of fiqh. This page stays with the heart of it: care about what you take in, and seek what is lawful and clean.
How do I act on this hadith day to day?
By bringing simple care to the doorways of your life: earning honestly, eating what is lawful, and beginning with gratitude to Allah. The aim is not anxiety but awareness, that the same self which worships is the self which eats and earns, and the Most Pure invites you to come to Him clean.

What stayed with you?

A private note, kept only on this device. Find it again on your journey page.

One hadith a day, in your calendar.

Subscribe, free