idiom
bite your tongue
sich davon abhalten, etwas zu sagen, das man sagen möchte
Meaning
to stop yourself from saying something you want to say
Example
I had to **bite my tongue** when my boss took credit for my work.
Ich musste mir auf die Zunge beißen, als mein Chef sich meine Arbeit zuschrieb.