It is narrated from Hazrat Thawban (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Nothing can avert destiny except supplication, and nothing increases life except righteousness, and sometimes a person is deprived of sustenance because of a sin that he commits.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 22413
Hadith Gradingحکم دارالسلام:حسن لغيره دون قوله: وإن العبد ليحرم الرزق ....، وهذا إسناد ضعيف، عندالله بن أبى الجعد مجهول، ولم يسمع من ثوبان