Correct Answer:
B. Relative pronoun introducing a nominal clause
“What” introduces a noun clause functioning as the subject of the sentence, meaning “the thing that he said,” acting as a relative pronoun.