Pursue what helps and seek Allah’s aid

Sahih MuslimAbu Hurayra
Sahih Muslim · Book 46 · The Book of Destiny
Sahih Muslim · كتاب 46 · كتاب القدر
A strong believer is better and is more lovable to Allah than a weak believer, and there is good in everyone, (but) cherish that which gives you benefit (in the Hereafter) and seek help from Allah and do not lose heart, and if anything (in the form of trouble) comes to you, don't say: If I had not done that, it would not have happened so and so, but say: Allah did that what He had ordained to do and your" if" opens the (gate) for the Satan.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَابْنُ، نُمَيْرٍ قَالاَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ إِدْرِيسَ، عَنْ رَبِيعَةَ بْنِ عُثْمَانَ، عَنْ مُحَمَّدِ بْنِ يَحْيَى بْنِ حَبَّانَ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏
"‏ الْمُؤْمِنُ الْقَوِيُّ خَيْرٌ وَأَحَبُّ إِلَى اللَّهِ مِنَ الْمُؤْمِنِ الضَّعِيفِ وَفِي كُلٍّ خَيْرٌ احْرِصْ عَلَى مَا يَنْفَعُكَ وَاسْتَعِنْ بِاللَّهِ وَلاَ تَعْجِزْ وَإِنْ أَصَابَكَ شَىْءٌ فَلاَ تَقُلْ لَوْ أَنِّي فَعَلْتُ كَانَ كَذَا وَكَذَا ‏.‏ وَلَكِنْ قُلْ قَدَرُ اللَّهِ وَمَا شَاءَ فَعَلَ فَإِنَّ لَوْ تَفْتَحُ عَمَلَ الشَّيْطَانِ ‏"‏ ‏.‏
Reference : Sahih Muslim 2664In-book reference : Book 46, Hadith 52

Understanding this hadith

The hadith joins strength, effort and acceptance of what escapes our control.

Keep both parts of the comparison

The strong believer is described as better and dearer to Allah than the weak believer, then the text states that there is good in both. It calls for pursuing what benefits with Allah’s help. The comparison does not justify contempt.

After a disappointing outcome

HadeethEnc explains the “if” that feeds rejection of the decree and endless regret. Examining a mistake to act better is not a claim to rewrite the past. Look for a correction still possible rather than a scenario that cannot be rerun.

In the guide: Seeking what benefits you and asking Allah for help

Sources and references