I was told at a young age that the victim of murder has all his sins forgiven. Is this true? If so, does it also apply to non-Muslims who may get murdered such as while resisting a robbery?
Every victim will be compensated by Allah, The Most Merciful. We do not have details of how much he will be compensated. It depends on many factors which are best known to Allah. A pious believer who was victimised because of his true faith will be compensated much more than a person who was victimised for a worldly reason or a non believer who spent his life in sins. After all, Allah is The absolute Just and The most Merciful.
'Wassalam.