Jami` at-Tirmidhi Book 10, Hadith 109
The Prophet said: "Whoever consoles a person with an affliction, then he gets the same reward as him."
The Messenger of Allah said: "When a person dies, he is shown his place . If he is one of the people of Paradise; he is shown his place among the people of Paradise, and if he one of the people of the Fire; he is shown his place among the people of the Fire. Then it is said to him: 'This is your place until Allah resurrects you on the Day of Judgment.'"
The Messenger of Allah said: "No Muslim dies on the day of Friday, nor the night of Friday, except that Allah protects him from the trials of the grave."