It is prohibited in the Sunnah of Prophet Muhammad (PBUH) to pass judgement on people and where they will go in the hereafter. We should stay silent if we believe someone will get a punishment.
You know those people who are going around telling people they are going to Hell? But if you ask the exact same person where will you go in the hereafter they say “I don’t know.” So they have the audacity to say where other people will go but they won’t judge themselves yet they know themselves better than anyone else.
None of the prophets told people where they would go in the hereafter. It is so important to understand and know that the only one who knows where any of us are going is Allah. We should never go around thinking we know and we can judge where people are going in the hereafter. We have no knowledge of that.