Sunan Ibn Majah 76: Introduction
Hazrat Abdullah bin Mas'ud (ra) related that the Messenger of Allah (saw) said, and he (saw) is the truthful and the one confirmed as truthful (that is, he (saw) is truthful and only truth has been granted to him): “The created material of each one of you is gathered in his mother’s womb for forty days. Then in the same way it becomes a clinging thing, and then in the same way it becomes a lump of flesh. Then Allah sends an angel to it, and he is commanded with four things. Allah says to him: Write his deeds, write his lifespan, write his provision, and (write whether he is) wretched or fortunate. By Him in whose hand is my life, one of you keeps doing the deeds of the people of Paradise until there remains between him and Paradise the distance of an arm’s length, and what has been written about him overtakes him, and he does the deeds of the people of Hell and enters it. And one of you keeps doing the deeds of the people of Hell until there remains between him and it (Hell) only the distance of an arm’s length, and what has been written about him overtakes him, and he does deeds like those of the people of Paradise and enters it.”
AI-translated by Islam-Today