Narrated Anas bin Malik: A funeral procession passed and the people praised the deceased. The Prophet, peace be upon him, said, “It has been affirmed to him.” Then another funeral procession passed and the people spoke badly of the deceased. The Prophet, peace be upon him, said, “It has been affirmed to him.”

Omar bin Al-Khattab asked Allah’s Messen-ger, peace be upon him, “What has been affirmed?” He replied, “You have praised this one so Paradise has been affirmed to him; and you have dis-praised (spoken badly of) the other, so Hell has been affirmed to him. You people are Allah’s witnesses on earth.”
[2: 448- O.B. Sahih Al-Bukhari)