That seems pretty straight forward.
If Person B declared they "rewarded" or paid Person A, then unequivocally YES, Person A would have to pay tax.
Otherwise, Person A really has no benefit from said "reward". In fact, really has no affiliation with it (reward) in any way.