Examples of using "彼は心の中で「いやだ!」と思ったが、声に出して言ったのは「はい」であった。" in a sentence and their german translations:
Er dachte zu sich selbst: "Nein!" Laut sagte er: "Ja".