Wiktionary
bite one's tongue
vb. (context idiomatic English) To forcibly prevent oneself from speaking, especially in order to avoid saying something inappropriate or likely to cause a dispute.