Sunan Ibn Majah, Book 37, Hadith 173 (Ibn Majah 4276)

It was narrated from Jabir that the Prophet (ﷺ) said:

“When the deceased enters the grave, the sun is made to appear as if it is setting. He sits up, wipes his eyes and says: ‘Let me pray.’”