Sunan Ibn Majah, Book 36, Hadith 97 (Ibn Majah 4025)

It was narrated from Thawban that the Messenger of Allah (ﷺ) said:

“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.’”