The sahaba of the Prophet (sallalahu alyhi wasalam) always aimed high and did not waste their time and energy on low worldly desires. This is shown by the fact that, whenever they found the slightest opportunity, they would ask the Prophet (sallallahu alyhi wa salam), to make duaa for them and ask Allah to be pleased with them, enter them into jannah, and make them companions of the Prophet(sallallahu alayhi wasalam) in jannah.
Muslim narrated that Rabee‘ah ibn Ka‘b al-Aslami (may Allah be pleased with him) said: I used to stay overnight with the Messenger of Allah (blessings and peace of Allah be upon him) and bring him water for wudoo’ and whatever he needed. He said to me: “Ask.” I said: I ask to be with you in Paradise. He said: “Is there anything else?” I said: That is all, He said: “Help me to do that for you by prostrating a great deal.”
If one of us was in that situation, I wonder what would we ask for, maybe money, houses and cars. But to this sahabi, none of that matters because he understands and sees the reality of this world.
The sahaba understood, as the Prophet (sallallahu alayhi wa salam) taught them, that they had a target and a destination to get to. And until they reach their target, nothing else that happens on the way matters, be it good or bad. For example, if you were to leave your city and travel to another city by catching a bus or a train, and on the way you saw a wonderful service station or rest area, that was very comfortable and had great food facilities, would it make sense to abondon your journey and decide to stay there. Ofcourse not, because this place is not your final destination, it is just a rest stop, you take what you want and you resume your journey. In the same way, if a difficulty comes your way, you do not abondon your journey but you find ways around this difficulty and keep going. For example, if the bus breaks down, you get off and find another bus, or if your possessions are stolen, you don’t start crying and turn around, but you keep it moving.
This was the situation of the sahaba, their aim was to get to jannah, things in the dunya held no importance for them, whether it was something good or something bad. If some good came to them, they enjoyed it, used it and took advantage of it, but they did not long for it, or feel depressed if they did not get it. If a difficulty hit them, they also did not see it as something important, they were patient with it and saw it as something of no consequence that had to be endured on their path to jannah.
On the authority of Ibn Umar, may Allah be pleased with both of them, who said: The Messenger of Allah (peace and blessings of Allah be upon him) took hold of my shoulder and said, ‘Be in the world as if you were a stranger or a traveller along the path.” And ibn Umar would say, “If you survive till late afternoon, do not expect [to be alive in] the morning. If you survive till morning, do not expect [to be alive in] the late afternoon. Take from your health before your sickness and your life before you death.”(Bukhari)