The misery recorded for the fetus

Q 2: It is said that when the embryo is formed in the womb, the angel entrusted with wombs seeks the Lord's Permission, hence, the Lord commands, "Write". Thereupon, the angel says, "What should I write?" He (Glorified and Exalted be He) orders, "Write their life span, provision, whether they will be happy or miserable, and their time of death". Please advise us on the meaning of Misery and Happiness, are they meant for the life of this world or the Hereafter (Part No. 2; Page No. 30

A: Misery is generally designated for both this life and the Hereafter, as is the case with happiness.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.