و علیکم السلام
About the creation of life Quran guides: ہم نے جنوں اور انساتوں کو اپنی عبادت کے لیے پیدا کیا
and in Surah Mulk says: اور جس نے زندگی اور موت پیدا کی کہ جانچ ہو کہ تم میں سے کس کے عمل اچھے
Our life is to prove that we do our every deed in accordance with the commandments of Islam. Of-course, the meaning of "Ibaadt" is much broader than just offering prayer and sitting in the mosque. It means doing every deed according to Sunnah and the way Islam has ordered to do. By keeping in view "Rizaa-e-Ilahi" in our every action, we can side by side resolve all our worldly problems as well. Referring back to the quoted verses, LIFE IS AN EXAMINATION HALL.