the Messenger of Allah ﷺ said, "If Allah wills goodness for a servant, He sweetens him.” It was said, “What would be his sweetness?” The Prophet said, “Allah opens the door of righteous deeds for him before his death and then receives his soul in that state.” (Using translation from Aḥmad 17784)
قَالَ رَسُولُ اللَّهِ ﷺ «إِذَا أَرَادَ اللَّهُ بِعَبْدٍ خَيْرًا اسْتَعْمَلَهُ» قَالُوا يَا نَبِيَّ اللَّهِ وَكَيْفَ يَسْتَعْمِلُهُ؟ قَالَ «يُوَفِّقُهُ لِعَمَلٍ صَالِحٍ قَبْلَ مَوْتِهِ ثُمَّ يَقْبِضُهُ عَلَيْهِ»