Jami` at-Tirmidhi Book 10, Hadith 56
"When the Messenger of Allah follows a corpse, he would not sit until (the deceased was) placed in the Lahd. A rabbi came upon him and said: 'This is what we do, O Muhammad'" He said: "So the Messenger of Allah sat, and he said: 'Differ from them.'"
The Messenger of Allah said: "Mention good things about your dead, and refrain from (mentioning) their evil."
"I buried my son Sinan and Abu Talhah Al-Khawlani was sitting on the rim of the grave. When I wanted to leave he took me by my hand and said: 'Shall I not inform you of some good new O Abu Sinan!' I said: 'Of course.' He said: 'Ad-Dahhak bin Abdur-Rahman bin Arzab narrated to me, from Abu Musa Al-Ash'ari: "The Messenger of Allah said: 'When a child of the slave (of Allah) died, Allah says to the angels: "Have you taken the fruits of his work." They reply: "Yes." So He says: "What did My slave say?" They reply: "He praised you and mentioned that to You is the return." So Allah says: "Build a house in Paradise for My slave, and name it 'the house of praise.'"