All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
May Allah have mercy upon our righteous predecessors; many of them would hide their deeds in order to achieve sincerity.
An example of this is what was reported about Dawood ibn Abi Hind and cited by Ibn Al-Jawzi in Al-Mud-hish and by Ath-Thahabi in As-Siyar, “Dawood ibn Abi Hind fasted for forty years and no one knew about it. He would take his lunch and go out to his shop, and he would give his lunch in charity on his way. The people of the market would think that he had eaten at home and his family would think that he had eaten in the market.”
Allah knows best.