سُبْحَانَ ٱللَّٰهِ
Holy Qur'an
Al-Qur'an
Kids Qur'an
Implying that he had always been conscious of resurrection and judgment, and had tried to behave accordingly.
The righteous one rejoices that the faith he had during this world's life was fully justified, and is now actually realised before him. He quite understood and believed that good and evil must meet with their due consequences in the Hereafter, however much appearances may have been against it in the life in the lower world, "in the days that are gone".