credit for (something)
Praise, admiration, or acknowledgement for some task, achievement, or accomplishment. Even though Jenny did all the hard work on the project, Mary was the one who got credit for it. You have to give John credit for the humility he shows regarding his financial success.
credit someone or something for something
to give someone or something the praise deserved for doing something. We must credit Sarah for her efforts on our behalf. We have to credit all the rain we've had for saving the crops.