Surah At-Tawba

9:58

وَمِنْهُم مَّن يَلْمِزُكَ فِى ٱلصَّدَقَٰتِ فَإِنْ أُعْطُوا۟ مِنْهَا رَضُوا۟ وَإِن لَّمْ يُعْطَوْا۟ مِنْهَآ إِذَا هُمْ يَسْخَطُونَ

And among them are some who criticize you concerning the [distribution of] charities. If they are given from them, they approve; but if they are not given from them, at once they become angry.

Tafsir 9:58

Among the hypocrites are those who criticise the Messenger for how he distributes charity. If they are given what they want from it, they are happy with the Messenger; but if he does not give them what they want from it, they start to complain.