We look at death as something that is bad but death teaches us something. It teaches us that one day we will leave this world. If we are going to leave this world, what should we do? How should we live our lives? We should live according to the commandments of God. We should follow the ways of God. We should do good work. We should be good and obey the commandments of God.
Death brings to our remembrance that the life that we are living is not our own. One day we will leave this world to go and meet God and tell Him what we have done with our lives. We should know that we do not have the power over our lives. We should know that we are not the ones who have the control over our lives. Death can come anytime. The life that we are living is given to us by God and He will take it anytime.
Death is telling us that we will be judged one day. In fact, we are just marching towards the judgement. We must understand that after our death we will face judgement. We will be judged for how we have used our lives when we were on earth. Every man will give account of what he has done with His body.