Imām Ibn Qayyim (d.751 AH) said:
It is not possible for the servant to enter paradise without purification. The servant is purified by way of four things in the worldly life:
If these four things are not enough to purify and cleanse the servant, he is purified by way of three things in the Barzakh:
If these three things are not enough to purify him, he is purified at the place of standing by way of three things:
If these three things are not enough to purify him, then the hellfire will cleanse him and purify him from his evil. He will abide therein according to the severity of his evil and how much he possesses. When he becomes pure and good and evil has departed, he will exit the hellfire and enter paradise.
Source: Madārij al-Sālikīn 1/463
Translated by: Munīb al-Ṣumālī