Abu Hurairah reported,

The Messenger of Allah ﷺ said, "The strong believer is better and more beloved to Allah than the weak believer, though there is good in both. Strive for what benefits you, seek help from Allah, and do not give up. If something befalls you, do not say, 'If only I had done such and such, things would have turned out this way or that.' Rather say, 'Allah has decreed, and what He wills, He does.' For 'if only' opens the door to the work of Satan."

Muslim 6774

Sahih

حدثنا أبو بكر بن أبي شيبة وابن نمير قالا حدثنا عبد الله بن إدريس عن ربيعة بن عثمان عن محمد بن يحيى بن حبان عن الأعرج

عن أبي هريرة قال

قال رسول الله ﷺ المؤمن القوي خير وأحب إلى الله من المؤمن الضعيف وفي كل خير احرص على ما ينفعك واستعن بالله ولا تعجز وإن أصابك شيء فلا تقل لو أني فعلت كان كذا وكذا ولكن قل قدر الله وما شاء فعل فإن لو تفتح عمل الشيطان

مسلم 6774صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Decree
Chapter
Commanding strength, abandoning helplessness, seeking help from Allah, and entrusting all decrees to Allah
Numbering
Darussalam 6774
Muslim 6774