give someone credit for

US /ɡɪv ˌsʌm.wʌn ˈkred.ɪt fɔːr/
UK /ɡɪv ˌsʌm.wʌn ˈkred.ɪt fɔːr/
"give someone credit for" picture
1.

to acknowledge someone's contribution or achievement

:
You have to give him credit for trying, even if he didn't succeed.
I'll give you credit for finishing the project on time.