"When Allah wants good for a slave, He puts him in action." It was said: "How does he put him in action O Messenger Of Allah?" He said: "By making him meet up with the righteous deeds before death." (Using translation from Tirmidhī 2142)
قَالَ رَسُولُ اللهِ ﷺ إِذَا أَرَادَ اللهُ بِعَبْدٍ خَيْرًا اسْتَعْمَلَهُ قَالُوا وَكَيْفَ يَسْتَعْمِلُهُ؟ قَالَ يُوَفِّقُهُ لِعَمَلٍ صَالِحٍ قَبْلَ مَوْتِهِ