The Angels Munkar and Nakir in Islam

Among the angels are also those who are in charge of the trial of the grave. They are called Munkar and Nakir. Al-Bukhari, may Allah have mercy on him, transmitted from Anas , that the Prophet , may Allah bless him and grant him peace, said:

When someone is placed in his grave, and his companions turn and go, and he can still hear the tread of their sandals, two angels come to him and make him sit up and say to him, 'What do you say about this man, Muhammad , may Allah bless him and grant him peace?' He will say, 'I testify that he is the slave of Allah and His Messenger.' It will be said, 'Look at your place in the Fire. Allah has given you, in exchange for it, a place in the Garden.'
The Prophet said:

He will see both places. The unbeliever or the hypocrite will say, 'I do not know. I used to say what everyone else said.' He will be told, 'You neither understood nor followed the guidance.' Then he will be hit between the ears with an iron hammer and will cry out with a cry which is heard by everything near him except men and jinn.
Muslim reported something similar to it from Qatada and he added in it that Qatada said:

He mentioned to us that the believer's grave will be expanded to about seventy cubits for him, and it will be filled with greenery until the day they are brought back to life.
Muslim transmitted from Abdullah b. Abbas that the Messenger of Allah , may Allah bless him and grant him peace, used to teach them this supplication in the same way that he used to teach them a sura of Quran. He would say:

O Allah , I seek refuge with You from the punishment of Jahannam and I seek refuge with You from the punishment of the grave. I seek refuge with You from the trial of the Masih ad-Dajjal and I seek refuge with You from the trials of life and death