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