Sayyidina Abdullah ibn Mas’ud (RA) reported that Allah’s Messenger (SAW) the truthful who was confirmed as such, said to them, “Each one of you stays in his mother’s womb for forty days as a sperm. Then he turns into a clot for as many days, and then a lump of flesh. Then Allah sends to him an angel who blows into him the soul and is commanded with four words. He records his sustenance, his life term, his deeds and whether he will be miserable or fortunate. By Him besides Whom there is no God, one of you will perform deeds of the people of Paradise till only a cubit separates him from it when what is decreed will overtake him and he will do deeds of the denizens of the fire and he will enter it. And one of you will do deeds deserving of the fire till there is not but a cubit between him and it when he will do a deed of those worthy of Paradise and will enter it.”
[Bukhari 6594, Muslim 2643]
--------------------------------------------------------------------------------