Death is often a frightening thought, but one that we should not be scared of. When you truly understand death you will no longer have to be scared of it.
When we are able to understand that Allah (SWT) made this Dunya (Arabic for the temporal world) a test for the believers and that this is not our real home; you will truly be able to find peace within your heart. You think that death is scary, but this Dunya is scarier. The reality of this Dunya is that we often excuse our poor behaviour of the neglection of Allah (SWT) due to our worldly responsibilities.
You may be thinking well what will happen after death in Islam [link here]. In Islamic tradition, the following is what occurs after an individual passes away. The occurrence is not always as you may expect, and it can strike you at any time whether you like it or not. Allah (SWT) sends his angel Azreal, known as the angel of death, to retrieve the soul from the human. After Allah (SWT) has instructed Azreal (AS) to take your soul, you are then declared dead in the world of the Dunya.
“Allah takes the souls at the time of their death.” 39:42, Holy Quran
After you have died, your family and Muslim community will conduct your Ghusl (full-body ritual purification) and then proceed to your Janazah (funeral prayer) which is a part of the Islamic funeral rituals. After this and many prayers, your body is then buried six-foot underground, alone and by itself.
After some time in your grave, you are then visited by two angels, known as Munkar and Nakir. They are assigned to test the faith of those dead within their graves. When they arrive, they sit you up in your grave and ask you the following: “Who is your Lord? Who is your Prophet? And what is your faith?”.