(8) بَاب فِي الْأَمْرِ بِالْقُوَّةِ وَتَرْكِ الْعَجْزِ وَالِاسْتِعَانَةِ بِاللَّهِ وَتَفْوِيضِ الْمَقَادِيرِ لِلَّهِ
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
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 2664
In-book reference: Book 46, Hadith 52
USC-MSA web (English) reference(deprecated numbering scheme): Book 33, Hadith 6441