Sure At-Tawba

9:54

وَمَا مَنَعَهُمْ أَن تُقْبَلَ مِنْهُمْ نَفَقَٰتُهُمْ إِلَّآ أَنَّهُمْ كَفَرُوا۟ بِٱللَّهِ وَبِرَسُولِهِۦ وَلَا يَأْتُونَ ٱلصَّلَوٰةَ إِلَّا وَهُمْ كُسَالَىٰ وَلَا يُنفِقُونَ إِلَّا وَهُمْ كَٰرِهُونَ

Und nichts (anderes) verhindert, daß ihre Ausgaben von ihnen angenommen werden, als daß sie Allah und Seinen Gesandten verleugnen, sich nur schwerfällig zum Gebet begeben und nur widerwillig ausgeben.

Tafsir 9:54

What the hypocrites spend in charity will not be accepted from them due to three matters: their disbelief in Allah and His Messenger; their reluctance and lack of interest in praying; and not spending their wealth willingly, but only unwillingly – because they do not expect to get any benefit from their prayer, or from what they spend.