Our presence in this earth as a Human being is a test for us from God. God declared in the Quran that He would test us with difficulties and also with good fortunes. When we face difficulties, our test is whether we stay patient, we persevere and pray to God for help. We are here on Earth for a reason, to carry out good deeds and worship the creator God. The World is the test centre where we are being examined but the result we will know later. We humans want to see God, yet can not stare at the Sun for more than a few seconds.
And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient, Who, when disaster strikes them, say, ‘Indeed we belong to Allah, and indeed to Him we will return.’ — Quran 2:155–156 Alif, Lam, Meem. do people think that they will be left to say, “We believe,” without being tested? We certainly tested those before them. And Allah will clearly distinguish between those who are truthful and those who are liars. — Quran 29:1–3
the essential purpose for which humankind was created is the worship of God. God states that He made this life in order to test man so that every person may be recompensed after death for what he has earned.
You will certainly be put to test in respect of your properties and lives, and you will certainly hear many hurtful things from those who were given the Scripture before you and from the polytheists. — Quran 3:186
“this life is only one brief stage on its journey from God to God. And our Lord informs us repeatedly that our temporary life on this earth is merely a trial, a test, an examination period.” -Suzanne Haneef, Islam: The Path of God, pages 59–63. I highly recommend this book.
Not all your days will be the same. A day of sadness and another of happiness. A day of profit and another of loss. That’s the test of life.
A day will come when the whole universe will be destroyed and the dead will be resurrected for judgment by God. This day is the Day of Judgment. On that day, all people will be rewarded by God according to their beliefs and deeds. (it will be a difficult day…) — Quran 25:26