Upon the authority of al-Bara\' ibn `Aazib who said:
We went out with the the Prophet ( salla Allahu alaihi wa sallam) to a burial of a man from the Ansar (original inhabitants of Madina) until we arrived at the grave, and he still had not been placed in the slot of the grave.
Then the Messenger of Allah ( salla Allahu alaihi wa sallam) sat down and we sat around him. You would have thought that birds were upon our heads from our silence, and in the hand of the Messenger of Allah ( salla Allahu alaihi wa sallam) was a stick which he was poking the ground with. [Then he started looking at the sky and looking at the earth and looking up down three times]. Then he said to us:
\"Ask Allah for refuge from the torment of the grave\", he repeated this command two or three times. [Then he said O Allah I seek refuge in you from the torment of the grave][three times].