In french there is an expression often used at the past tense when you want to apologize for having said something a little nasty that you didn't really think (when you're angry, for exemple):
"Mes mots ont dépassé ma pensée" or "ma parole a dépassé ma pensée"