Meaning of “due” - Learner’s Dictionary

due

noun uk us /djuː/
give sb their due

something that you say when you want to describe someone's good qualities after they have done something wrong or after you have criticized them:

Joe's a bit slow but, to give him his due, he does work hard.

(Definition of “due noun” from the Cambridge Learner’s Dictionary © Cambridge University Press)