He traced it back to the Prophet ﷺ, who said, "Nothing repels destiny except supplication, nothing extends life except righteousness, and a servant is indeed deprived of provision because of a sin he commits."
حدثنا عبد الرزاق أخبرنا سفيان عن عبد الله بن عيسى عن عبد الله بن أبي الجعد الأشجعي
رفعه إلى النبي ﷺ قال لا يرد القدر إلا الدعاء ولا يزيد في العمر إلا البر وإن العبد ليحرم الرزق بالذنب يصيبه