nothing stops their charities from being accepted except that they have no faith in allah and his apostle and do not perform the prayer but lazily and do not spend but reluctantly.
وما منعهم أن تقبل منهم نفقاتهم إلا أنهم كفروا بالله وبرسوله ولا يأتون الصلاة إلا وهم كسالى ولا ينفقون إلا وهم كارهون