You said that rebellious creatures were created in this world in ugly, transformed forms because of their record of deeds. For these creatures, this world is a place where they endure punishment for past deeds, make amends for their mistakes, and carry out their appointed duties.
Who exactly are these creatures, and why must they endure punishment in this way?
#Answer 2992
All creatures began with equal capacities and potential, and were placed on the path of a contest in servitude to God. After receiving instruction and passing through various classes and tests, they earned their certificate of servitude—their present form.
Every attribute, outward and inward, of all the particles and kinds of beings—minerals, plants, animals, human beings, angels, and all the rest—is the result of that same contest in servitude. This gathering is still under way!
The final outcome has not yet been announced. The Hereafter is where the final results will be declared.
This world may be regarded as a kind of lesser Resurrection, in which earthly beings endure an intermediate punishment for their deeds.
One of the tests to which creatures were subjected was the test of loyalty to the divinely appointed authority. The following is part of an account of it:
... و فی یوم الغدیر عرض الله الولایه على أهل السماوات السبع فتسبق إلیها أهل السماء السابعه فزین بها العرش ثم سبق إلیها أهل السماء الرابعه فزینها بالبیت المعمور ثم سبق إلیها أهل السماء الدنیا فزینها بالکواکب ثم عرضها على الأرضین فسبقت مکه فزینها بالکعبه ثم سبقت إلیها المدینه فزینها بالمصطفى محمد ص ثم سبقت إلیها الکوفه فزینها بأمیر المؤمنین ع و عرضها على الجبال فأول جبل أقر بذلک ثلاثه أجبل [أجبال] العقیق و جبل الفیروزج و جبل الیاقوت فصارت هذه الجبال جبالهن و أفضل الجواهر ثم سبقت إلیها جبال أخر فصارت معادن الذهب و الفضه و ما لم یقر بذلک و لم یقبل صارت لا تنبت شیئا و عرضت فی ذلک الیوم على المیاه فما قبل منها صار عذبا و ما أنکر صار ملحا أجاجا و عرضها فی ذلک الیوم على النبات فما قبله صار حلوا طیبا و ما لم یقبل صار مرا ثم عرضها فی ذلک الیوم على الطیر فما قبلها صار فصیحا مصوتا و ما أنکرها صار أخرس مثل اللکن و مثل المؤمنین فی قبولهم ولاء أمیر المؤمنین فی یوم غدیر خم کمثل الملائکه فی سجودهم لآدم و ...
Iqbal al-Aʿmal (old edition), vol. 1, p. 464