Martyrs in Islam are the ones who sacrifice their lives for the sake of Allah Almighty for a good cause in a battle field or operation. Let us look at what Allah Almighty Said about Martyrs when they die:
“And say not of those who are slain in the way of Allah: ‘They are dead.’ Nay, they are living, though ye perceive (it) not. (The Noble Quran, 2:154)”
“Think not of those who are slain in Allah’s way as dead. Nay, they live, finding their sustenance in the presence of their Lord. They rejoice in the Bounty provided by Allah: And with regard to those left behind, who have not yet joined them (in their bliss), the (Martyrs) glory in the fact that on them is no fear, nor have they (cause to) grieve. They glory in the Grace and Bounty from Allah, and in the fact that Allah suffereth not the reward of the faithful to be lost (in the least). (The Noble Quran, 3:169-171)”
The above Noble Verses clearly state that Muslims must not think that Martyrs are dead. They are raised to Allah Almighty in Heaven, and they are rejoicing the Bounty and Grace that is provided by Allah Almighty to them.
Will Martyrs be judged for their good and bad deeds?
According to the next section below, yes they will be judged. But Allah Almighty is dynamic in His Judgement. He forgives certain sins to different people depending on how good they were in life. Every human being will be treated uniquely. Let us look at what Allah Almighty Said in the Noble Quran:
Allah Almighty Said: “O ye who believe! Fear Allah as He should be Feared, and die not except in a state of Islam. (The Noble Quran, 3:102)“
He also Said: “The Religion before God is Islam (submission to His Will): Nor did the People of the Book dissent therefrom except through envy of each other, after knowledge had come to them. But if any deny the Signs of God, God is swift in calling to account. (The Noble Quran, 3:19)”
“Say: ‘O my Servants who Have transgressed against their souls! Despair not of the Mercy of Allah: for Allah forgives all sins for He is Oft-Forgiving, Most Merciful. (The Noble Quran, 39:53)“
The use of the word “Say” in this Noble Verse means that Allah Almighty wants us to always remind each others by reciting this Noble Verse to those who need it.
“Allah forgiveth not that partners should be set up with Him; but He forgiveth anything else, to whom He pleaseth; to set up partners with God is to devise a sin Most heinous indeed. (The Noble Quran, 4:48)“
In the above Noble Verses, we clearly see that Allah Almighty accepts nothing from a person after death but his belief in Islam and He is Willing to forgive our sins.
Everyone from Mankind will pass over hell:
Let us look at what Allah Almighty Said in the Noble Quran:
“And certainly We know best those who are most worthy of being burned therein. Not one of you but will pass over it (Hell): this is, with thy Lord, a decree which must be accomplished. (The Noble Quran, 19:70-71)“
“Then shall anyone who has done an atom’s weight of good, see it! And anyone who has done an atom’s weight of evil, shall see it. (The Noble Quran, 99:7-8)”
As we clearly see from the above Noble Verses, everyone will be shown and held accountable for all of the bad things he/she have done in life.
Passing over hell in Islam means that the person will enter it. But hell, like Heaven, has different levels. Heaven has 500 levels. The Highest Level in Heaven is for the Prophets, the Martyrs, and the Most Righteous of Mankind. The lowest level is for the lowest people of Mankind who barely made it to Heaven, because they were too sinful.
As Allah Almighty clearly mentioned in Noble Verse 4:48 above, He would forgive anything except partnering other gods with Him. So if a Martyr was courageous enough to sacrifice his life for the sake of Allah Almighty.
Then it is highly possible that Allah Almighty would forgive all of his sins and send him straight to Heaven after a brief pass over Hell. The level of pain for punishment and purification that the Martyr and any other human being would suffer in passing over Hell all depends on what kind of a person he/she was.
Again, it all depends on how much sins the person had committed in his life, and how much Allah Almighty loves him. Allah Almighty clearly Said that everyone of us shall see every atom of good and bad deeds that they did in Noble Verse 99:7-8.
Allah knows Best