It was narrated that Thawban said:
"The Messenger of Allah (ﷺ) said: 'Nothing extends one's life span but righteousness, nothing averts the Divine Decree but supplication, and nothing deprives a man of provision but the sin that he commits.'" (RU)
English reference (RU): Vol. 1, Book 1, Hadith 90 (RU)
Arabic reference (RU): Book 1, Hadith 95 (RU)