It is narrated from Sayyiduna Salman al-Farisi (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Nothing averts the decree except supplication (du'a), and nothing increases one's lifespan except righteousness."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6103