Hadithcore
Mishkat al-Masabih, 2233

Salman al-Farisi reported God’s messenger as saying, “Nothing but supplication averts the decree, and nothing but righteousness increases life.” Tirmidhi transmitted it.

وَعَنْ سَلْمَانَ الْفَارِسِيِّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا يَرُدُّ الْقَضَاءَ إِلَّا الدُّعَاءُ وَلَا يَزِيدُ فِي الْعُمْرِ إِلَّا الْبر» . رَوَاهُ التِّرْمِذِيّ

References1 variant
In-Book Reference
Book 9, Hadith 11