Fasting is a protection from hellfire. It means that man will be protected from hellfire by fasting.
Usul al-Kafi, Vol. 4, P. 62; Tuhaf al-‘Uqul, P. 25
So woe unto those who by not fasting or breaking their fasts [during day] will buy themselves hellfire.