To observe fasting (according to Islamic teachings)] during the month of Ramadan (sincerely and faithfully) hoping for Allah's Reward only, is a part of faith
Allah's Messenger (ﷺ) said, "Whoever observes fasts during the month of
Ramadan out of sincere faith, and hoping to attain Allah's rewards,
then all his past sins will be forgiven."