Abu Hurairah reported,

Reaching back to the Prophet ﷺ, he 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, and do not be helpless. If something overcomes you, say, 'Allah has decreed, and He does as He wills.' Beware of saying 'if only,' for 'if only' opens the door to the work of Satan."

Ibn Majah 4168

Sahih

حدثنا محمد بن الصباح أنبأنا سفيان بن عيينة عن ابن عجلان عن الأعرج

عن أبي هريرة

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

ابن ماجه 4168صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Asceticism
Chapter
Reliance on Allah and certainty
Numbering
Darussalam 4168
Ibn Majah 4168