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 the help of Allah, and do not give in to weakness. If something befalls you, do not say, 'If only I had done such and such,' but rather say, 'Allah has decreed, and what He wills, He does,' for 'if only' opens the door to the work of Shaytan."

Ibn Majah 79

Sahih

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

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

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

ابن ماجه 79صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
Decree
Numbering
Darussalam 79
Ibn Majah 79