Prophet (S.A.W.) said:
“Fasting is a shield or protection from the fire and from committing sins.”
(Sahih Bukhari: 1904)