As soon as we pass, we will see angels come to us and their faces will be as bright as the sun. The soul will then come out of the body. The soul is then questioned by two angels named Munkar and Nakir. Allah (swt) will bring the soul up and he will be asked these questions. Who was his lord, what did he believe in this world, what is his religion, and who was his prophet. If you answer them correctly, you will see angels come to you. If you don’t (may Allah (swt) protect us), you will be punished. The questioning happens when you are buried and everyone has left your burial.
“O death comes to the seeker of knowledge whilst he is in that state of seeking knowledge, he dies as a martyr.” Al-Targhib wa al-Tarhib
Al-Targhib wa al-Tarhib
Ibn Hajar al-Asqalani