Therefore if they repent...
“And of them are those who have made a covenant with Allah: ‘If He gives us out of His grace, we will certainly give alms (zakāt) and we will certainly be of the righteous’.”*** 76 ***. “But when He gave them out of His Grace, they were niggardly of it and they turned away, swerving aside.”*** 77 ***.
“So as a consequence He put hypocrisy into their hearts until the day they will meet Him, because they failed to fulfil unto Allah what they had promised Him and because of what they used to lie.”*** 78 ***. “Do they not know that Allah knows their hidden (thought) and their secret whisperings, and that Allah is the knower of all unseen (things).*** The first verse of the abovementioned group of verses is about some of the hypocrites who made a covenant with Allah and then they broke it.
It has also been said that the verse has been revealed concerning ‘Tha‘labat-ibn Hātab’ who was a poor man. He asked the Prophet (S) that he would pray for him in this regard. He said if the Prophet (S) prayed and he became rich, he would remit considerably in the way of Allah, and he would become one of the benevolent persons. The Prophet (S) prayed for him and he became rich enough, but he stinted. He also did not participated in ‘Friday Prayer’, and thereupon he made his hypocrisy manifest.
Whatever the sign of the revelation of the verse might be, however, it is about some persons who have always existed and are existed in the societies. When such people have not wealth and facilities, they may make covenant with Allah that if Allah bestowed upon them properties and they became rich they would pay in charity in His way and would become righteous and of the good servants of Allah. But they often do not do like that when He causes them to be wealthy.
They scant and usually avoid doing good things.