Miscellaneous masaail of Janaazah

Dying in a place of sin

Q: I have a strange question I would like to ask. This is a completely hypothetical question. If a Muslim, with the right aqeedah, prayed his prayers and was a good Muslim, for some reason one day decided to go to a place of haram activity, such as a club, or in an extreme example, a strip club, and then was to die at this place, what would become of him Islamically? Would he go straight to hell or would be be saved of this sin because of his aqai'd and his prayers and that his life was taken at this place that he made the mistake of going to?