Allah Ta‘ala says that He has made us successors on earth. There is no void and vacuum of people at any given time. Hence, it is a manifestation of Allah Ta‘ala’s beauty. There is nobody present here today who was here 100 years ago, and from the present time nobody will be alive in 100 years. So in this whole equation, what Allah Ta‘ala is saying is that we have a very brief stay and the purpose is to test and examine man in the gifts and favours that Allah Ta‘ala has bestowed him with.
The real test is in the different ranks given to some over the other; one person is more popular and someone is not known. It is a test in the gifts of Allah Ta‘ala, whether a person will become boastful or not.
The correct way to view our position is that we should feel that we are the trustees of the gems of Allah Ta‘ala. So the work of the trustee is that he should not feel that these gems belong to him, rather he is merely the trustee and safekeeper of these gems. He is not the owner of these gems, rather the owner is Allah Ta‘ala. Whatever we see to be with us is not ours, rather it all belongs to Allah Ta‘ala. The more we understand this lesson, the more we will be on the right course.