” If you made a donation without intending zakat, but later learned it was zakat eligible, can it count toward zakat? @FarazRabbani @hwmaqbul @joewbradford. Guessing Hanafis/Shafis split like do you have wudu if you accidentally fall in a pool without intention.”
There is general agreement that Zakat is not to be given to anyone who is fighting against Islam and Muslims; this is a point that does not need much elaboration. As for others who are non-combatant, and do not show enmity towards Islam and Muslims then medieval scholars differed as to whether such a person can be given Zakat.