Narrated 'Abdullah bin Mas'ud: that the Prophet ﷺ said: "A man among the inhabitants of Paradise will appear before you". So Abu Bakr appeared. Then he said: "A man among the inhabitants of Paradise will appear before you". So 'Umar appeared.
The lesson here is that if we are good people who strive for righteousness, then Allah will reward us with His mercy and grace in this life as well as the hereafter. We should always remember that our actions have consequences both in this world and beyond it, so we must always strive to do what is right even when it may not seem easy or convenient at first glance.