This a purely ethic question. Both options have their pros and cons. But there is a reason why the wisest thing to do, would be not giving him the training materials.
You attended the training course, which required time, effort, and dedication to complete, why you did this? Because you want to grow, you want to get your credentials and achieve greater things, that is why you are willing to invest your resources in the course. Your coworker seems to consider this "a waste of time", which implies that you wasted your time attending the training course. This reveals that maybe he is not as committed as you are to his cause, and his recklessness may cause him (and you) trouble. Your accomplishments will be diminished because you will give away something you worked hard for, to someone who did not do anything to deserve.
By not giving him the materials, you will not hurt the team, because if this person wanted to be a qualified member, and get his credential, he could have attended to the training, in the end, even after giving him the training materials, there is no way to know that he will not fail the test, because he didn't pay attention to the class. This person is hurting the team on his own with his lack of commitment and responsibility.