The correct answer is B.
The phrase "it goes to his heart" means that something deeply affects or moves someone. In this case, the speaker is saying that seeing so much misery deeply affects or moves the person they are talking about.
Option A is incorrect because "influences" does not mean "deeply affects or moves." It can mean to have an effect on someone or something, but it does not necessarily mean to have a deep or profound effect.
Option C is incorrect because "makes him yield" means to cause someone to give in or surrender. This is not the meaning of the phrase "it goes to his heart."
Option D is incorrect because "annoys him" means to make someone feel irritated or frustrated. This is not the meaning of the phrase "it goes to his heart."