A person physically experiences the punishment in the grave, although the living people do not notice it. It is for both the body and the soul, as proven by the apparent textual meanings contained in the Qur'an and Sunnah. Allah (Exalted be He) says:
The Fire, they are exposed to it, morning and afternoon. And on the Day when the Hour will be established (it will be said to the angels): "Cause Fir‘aun’s (Pharaoh) people to enter the severest torment!"
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family and Companions.