Give credit where credit is due

To acknowledge or thank someone who deserves it.

We gave credit where credit is due and thanked the cook for her hard work.