What are you leaving behind when you leave this dunya? What will your legacy be? How will your rank be raised?
The first step is having a goal and finding a role model. If we’ve never thought of a legacy then we are far away from the people of the past that we claim to follow.
This is what is meant by not giving the dunya too much importance.
When have we ever read the people of the past said we want to memorise Qur’an as our lofty goal? Umar bin Abdul Aziz (ra) would say he wanted to be the leader of the Muslim ummah! And he got it.