Jesus said if you flaunt your charity, prayer, or fasting, you lose your reward. Thoughts?

The Islamic populations fast between 30-40 days in a group period every year, and many of them do not seem to get solutions to the requests they offer to God.

South Asian Polytheists Will often fast for marital blessings before their arranged marriages, or for children, when they have difficulty producing them, and great numbers of them get answers to their prayers.

I think it is because Jesus said public fasting, done for honour and social acceptance, does not get rewarded, unless you are quiet and secretive about it.

Jesus said if you flaunt your charity, prayer, or fasting, you lose your reward. Thoughts?
Post Opinion