"The Prophet entered a grave during the night, so a torch was lit for him. He took it (the deceased) in from the direction of the Qiblah, and he said: 'May Allah have mercy upon you, you were often invoking (Allah) by reciting the Quran.' And he said: 'Allahu Akbar four times."
Jami` at-Tirmidhi Book 10, Hadith 93