proverb

Give credit where credit is due

praise

expresses that

Someone deserves to be praised for the good things they have doneit, although you might don't like some things about them.

also

Give honour where honour is due