All forty hadith

The 40 Hadith of Imam an-Nawawi · Hadith 19

Be mindful of Allah

He will be before you

عَنْ عَبْدِ اللَّهِ بْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: "كُنْت خَلْفَ رَسُولِ اللَّهِ صلى الله عليه و سلم يَوْمًا، فَقَالَ: يَا غُلَامِ! إنِّي أُعَلِّمُك كَلِمَاتٍ: احْفَظْ اللَّهَ يَحْفَظْك، احْفَظْ اللَّهَ تَجِدْهُ تُجَاهَك، إذَا سَأَلْت فَاسْأَلْ اللَّهَ، وَإِذَا اسْتَعَنْت فَاسْتَعِنْ بِاَللَّهِ، وَاعْلَمْ أَنَّ الْأُمَّةَ لَوْ اجْتَمَعَتْ عَلَى أَنْ يَنْفَعُوك بِشَيْءٍ لَمْ يَنْفَعُوك إلَّا بِشَيْءٍ قَدْ كَتَبَهُ اللَّهُ لَك، وَإِنْ اجْتَمَعُوا عَلَى أَنْ يَضُرُّوك بِشَيْءٍ لَمْ يَضُرُّوك إلَّا بِشَيْءٍ قَدْ كَتَبَهُ اللَّهُ عَلَيْك؛ رُفِعَتْ الْأَقْلَامُ، وَجَفَّتْ الصُّحُفُ"

One day I was behind the Prophet (peace and blessings of Allah be upon him) [riding on the same mount] and he said, “O young man, I shall teach you some words [of advice]: Be mindful of Allah and Allah will protect you. Be mindful of Allah and you will find Him in front of you. If you ask, then ask Allah [alone]; and if you seek help, then seek help from Allah [alone]. And know that if the nation were to gather together to benefit you with anything, they would not benefit you except with what Allah had already prescribed for you. And if they were to gather together to harm you with anything, they would not harm you except with what Allah had already prescribed against you. The pens have been lifted and the pages have dried.” It was related by at-Tirmidhi, who said it was a good and sound hadeeth. Another narration, other than that of Tirmidhi, reads: Be mindful of Allah, and you will find Him in front of you. Recognize and acknowledge Allah in times of ease and prosperity, and He will remember you in times of adversity. And know that what has passed you by [and you have failed to attain] was not going to befall you, and what has befallen you was not going to pass you by. And know that victory comes with patience, relief with affliction, and hardship with ease.

On the authority of Abu Abbas Abdullah bin Abbas (may Allah be pleased with him) who said:

The Prophet ﷺ took a young man up behind him on his mount and gave him words that would steady a whole life: be mindful of Allah, and He will be mindful of you; be mindful of Allah, and you will find Him before you.

Then he laid down a truth that frees the anxious heart: if the whole world gathered to benefit you with something Allah had not written for you, they could not; and if they gathered to harm you with something He had not written, they could not. The pens have been lifted and the pages have dried.

Where this hadith comes from

It is narrated by 'Abdullah ibn 'Abbas (ra), the Prophet's young cousin, who was a boy riding behind him on the same mount when he received these words. It was collected by at-Tirmidhi (no. 2516), who graded it hasan sahih (good and sound). Imam an-Nawawi placed it among his forty for a reason: scholars have long treated it as one of the most comprehensive counsels in the Sunnah, a whole posture for living the believer's relationship with Allah folded into a few sentences.

Because it was spoken privately to a child being given a lifelong lesson, its tone is intimate rather than legislative. The setting (a teacher leaning toward a young student behind him on a journey) is part of the meaning: this is wisdom handed down with tenderness, not a ruling handed down from a pulpit.

The key words

What it means, line by line

Be mindful of Allah and He will protect you: guard His rights and keep His commands, and you will find His protection covering your faith, your body, and your affairs. Be mindful of Allah and you will find Him before you: the One you kept in ease you will find waiting for you, ahead of you, in hardship. Then the heart is reoriented: when you ask, ask Allah; when you seek help, seek it from Allah, so that even when you use ordinary means, your true dependence rests on the One behind them.

The last lines free the anxious heart: if the whole nation gathered to benefit you, they could only reach you with what Allah had already written for you; and if they gathered to harm you, they could only reach you with what He had already written against you. The pens have been lifted and the pages have dried. The outcome is settled in Hands kinder than the world's, which is why the verse below names the reward of trust: the one who relies on Allah finds Him enough.

Guard Him, and He guards you

Be mindful of Allah, the Prophet ﷺ says, literally 'guard Allah,' meaning guard His limits, keep His commands, watch your duties to Him, and you will find Him guarding you, in your body, your faith, your family, your affairs. It is a relationship of mutual care, except His care infinitely outweighs yours.

And He will be before you, ahead of you on the road, easing what is to come. The one who keeps Allah in easy times finds Allah keeping him in hard ones. Mindfulness of Him is an investment that pays back exactly when you need it most.

Ask Him, rely on Him

Then the Prophet ﷺ redirects the whole orientation of the heart: when you ask, ask Allah; when you seek help, seek it from Allah. Not that we never turn to people for ordinary means, but that the heart's true reliance rests on the One behind all means. People are doors; Allah is the One who opens them.

This is tawakkul, trust, and the Qur'an ties it to a promise: the one who relies on Allah finds Him enough.

The freedom of the dried pages

The hardest and most freeing part comes last: what is meant to reach you cannot be turned away, and what is not meant for you cannot be forced upon you. The decree is written; the pens have dried. This is not fatalism that kills effort; it is trust that kills anxiety.

You still strive, still take the means, still tie your camel. But you do it with an unclenched heart, because you know the outcome was never in the hands of the crowd, the boss, the rival, or the circumstance. It is with Allah. And He, you have learned, can be trusted with it.

Carry this with you

A hadith to loosen the grip of fear and worry.

  • Guard Allah, and He guards you.

    Keep His limits in ease and find Him keeping you in hardship. He will be before you on the road.

  • Ask Him, rely on Him.

    People are doors; Allah opens them. Let the heart's true reliance rest on the One behind all means.

  • The pages have dried.

    What is written for you cannot be withheld; what is not cannot be forced on you. Trust kills anxiety.

  • Strive with an open hand.

    Take the means and tie your camel, but leave the outcome to Allah, not the crowd.

A du'a to carry

حَسْبُنَا ٱللَّهُ وَنِعْمَ ٱلْوَكِيلُ

Hasbunallahu wa ni'mal-wakil

Sufficient for us is Allah, and [He is] the best Disposer of affairs. (Aal 'Imran 3:173)

A du'a of reliance

The Prophet ﷺ leaned over to a young man and handed him the secret of a fearless life: keep Allah, and Allah keeps you; ask Him, rely on Him, and know that the pages of your destiny dried long ago in Hands far kinder than the world's.

So strive, and let go. Do your part, and unclench your heart. Nothing meant for you will pass you by, and nothing kept from you was ever yours to hold.

O Allah, make us mindful of You so that we find You before us. Be our sufficiency and the best Disposer of our affairs, and let us meet whatever You have written with trust instead of fear. Ameen.

The hadith is from sunnah.com: 'Be mindful of Allah and He will protect you...' narrated by Ibn 'Abbas (ra), at-Tirmidhi 2516, graded hasan sahih. Qur'an citations (65:3, in part, and 3:173) are in Uthmani script verified via quran.ai (ar-uthmani-minimal) with the Saheeh International translation. Per the editorial policy this stays with the meaning of reliance (tawakkul) and trust in the decree. FOR SCHOLAR REVIEW before publication.

Questions

What does 'be mindful of Allah' mean here?
The Arabic means to 'guard' Allah, that is, to keep His commands, observe His limits, and watch over your duties to Him. The Prophet ﷺ promised that whoever does so will find Allah guarding them in return, in their faith, body, family, and affairs.
Does 'seek help from Allah alone' mean I can't ask people for help?
It addresses the heart's reliance, not ordinary means. Muslims may ask others for help in normal matters; people are the doors through which Allah's help arrives. The hadith teaches that true dependence rests on Allah, the One behind every means, not on the means themselves.
Is the teaching about the decree fatalistic?
No. It removes anxiety, not effort. The Prophet ﷺ still commanded striving and taking the means ('tie your camel, then rely on Allah'). Knowing the outcome rests with Allah frees you to work hard with a calm heart, instead of being crushed by what you cannot control.
Why is this hadith so beloved?
Because in a few sentences it gives a complete posture for life: keep Allah and He keeps you, ask and rely on Him, and trust the decree. Many Muslims memorise it as a remedy for fear, worry, and the feeling of being at the mercy of people or circumstances.

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