Allah swt tests His slaves through pleasure and accident

Every pleasure and accident is in hands of Allah swt. Allah swt tests His slaves through these ups and downs as mentioned in Holy Quran :

We shall make a trial of you with evil and with good, and to Us you will be returned. (Al-Anbiya 21:35).

The purpose of these trials is to check the response of human beings during pleasing and shocking moments of life.It is our duty to be patient during shocks and thankful during accidents .May ALLAH help us to behave as submitted believers during each and every moment of life Ameen.