comer o pão que o diabo amassou

Etymology
lit. 'to eat the bread that the devil smashed'.

Verb

 * 1)  to face great difficulties or suffering in one's life, often to obtain something