وقال أبو حنيفة ومحمد: إذا دفع الزكاة إلى رجل يظنه فقيرا ثم بان أنه غني
Translation: Abu Hanifah and Muhammad state: if zakat is paid to a person believed poor and he is later discovered wealthy ... (the ruling continues below).
The phrase “believing him to be poor” is important. Under the stated Hanafi position, a good-faith mistaken assessment does not necessarily require paying again.
This is not permission knowingly to pay an ineligible person; juristic discussions distinguish reasonable inquiry and deliberate disregard.