In heaven Paul speaks to angels asking what happens to the righteous and unrighteous after death. There appears to be a "spirit" and "soul" in the body. Although what these distinctions clearly mean is uncertain.
Surah 50:17, "Remember that two receivers (recording angels) receive (each human being), one sitting on the right and the one on the left (to note his or her actions)." The Noble Quran edition.
Vision of Paul 16, "And when they had led it forth, the customary angel preceded it, and said to it: O wretched soul, I am the angel belonging to thee, relating daily to the Lord thy malign works, whatever thou didst by night or day
Surah 50:20,21, "And the Trumpet will be blown--that will be the Day whereof warning (had been given) (ie Day of Resurrection). And every person will come forth along with an angel to drive (him) and an (angel) to bear witness."
Angels taking Away Souls
Angels are assigned to people to record their activities in a book. Angels watch over the individual throughout their whole life and are met after death. Soul could be the "spirit" in man or the "suit in man" (1 Enoch).
Surah 6:61, "... until when death approaches one of you. Our Messengers (angel of death and his assistant) take his soul, and they never neglect their duty.” (The Noble Quran Edition).
In Surah 16:33, angels are taking away the souls (spirit in man) of the ungodly.
Vision of Paul 17. "And again I saw, and behold a soul which was led forward by two angels, weeping and saying: Have pity on me, just God, God the judge, for to-day is seven days since I went out of my body, and I was handed over to these two angels, and they led me through to those places, which I had never seen."
Angels are recording the sins and secrets of people in a manuscript (Vision of Paul) or the Record (Quran).
Vision of Paul: 17 "... Come, angel of this soul, and stand in the midst. And the angel of the sinful soul came, having in his hands a manuscript, and said: These, Lord, in my hands, are all the sins of this soul from his youth till to-day, from the tenth year of his birth: and if thou command, Lord, I will also relate his acts from the beginning of his fifteenth year.
Surah 69:18- 22, "That Day shall you be brought to Judgement, not a secret of you will be hidden. Then as for him who will be given his Record in his right hand will say: "Here! read my Record! "Surely, I did believe that I shall meet my Account!" So he shall be in a life, well pleasing, in a lofty Paradise".
Surah 6:61, “He is the Irresistible, (Supreme) over His slaves, and He sends guardian (angels guarding and writing all of one’s good and bad deeds) over you, until when death approaches one of you. Our Messengers (angel of death and his assistant) take his soul, and they never neglect their duty.”