mentar la soga en casa del ahorcado

Etymology
lit. 'to mention the noose in the hanged man's house'.

Verb

 * 1)  to say the wrong thing, to put one's foot in it