ANSWER:

If a muslim dies while committing a major sin, he is still muslim and will be punished for that, unless Allah wills otherwise but eventually will enter paradise. 

 

Does dying while committing a major or minor sin mean that the person will surely go to Jahannam and won’t have a chance to go to Jannah because he died disobeying Allah?

Paradise and Hell, Sins |