Heaven After Getting Punishment
I am a student. Based on my understanding if you do not commit big sins (Murder, Shirk, Fasad, illegal sexual relationships, oppression, torture, etc.), Allah promises to forgive minor sins (sins against Allah) and let Muslims enter Junnah. If you committed bigger sins and asked for forgiveness and avoided those sins, it is likely that Allah will forgive those sins (sins against Allah) If you committed sins against people and never received forgiveness from victims while alive and you never corrected the situation, then your good deeds will be balanced against your sins and if there are more sins, then the Muslims will have to go through punishment and thereafter they will receive Junnah; the lowest level Junnah. (This only goes for true believers / Muslims) Note that having more good deeds is easy as Allah doubles all good deeds, but a sin is still considered as one sin.