Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him) said: I witnessed two gatherings with the Messenger of Allah (peace and blessings be upon him). In one of them a funeral was brought and it was said: This is so-and-so, and he was a bad man, and evil was spoken of him. the Messenger of Allah (peace and blessings be upon him) said: "Do you know that?" The Companions said: Yes. He (peace and blessings be upon him) said: "It has become due (that is, Hell has become due for him)." In the other gathering, the funeral of a man was brought and it was said: This is so-and-so, and good was spoken of him. He (peace and blessings be upon him) said: "Do you know that?" The Companions said: Yes. He (peace and blessings be upon him) said: "It has become due (that is, Paradise has become due for him)."
Hadith Referenceالمعجم الكبير للطبراني / باب الكاف / 16393