The man whom he thought was his friend(‘he thought‘는 ‘he said‘와 마찬가지로 삽입된 표현이므로 ‘The man‘ 뒤에는 주격 관계대명사 ‘who‘를 써야한다.)The man who (that) he thought was hisfriend (whom he thought his friend)그가 친구로 생각했던 그 사람(문장 구조를 바꿔서 ‘he thought‘가 삽입된 표현이 아니라 ‘The man‘을 직접 선행사로 받는 표현이 되면 목적격 관계대명사 ‘whom‘을 써야한다.)