“Nothing increases one’s life span except righteousness and nothing repels the Divine decree except supplication, and a man may be deprived of provision by a sin that he commits.’”
Sunan Ibn Majah Book 36, Hadith 97