When words fail, music speaks tattoo

Well there are a couple of possibilities. The first, one can translate it just as you asked: fortitudo e dolore venit "strength comes from/out of pain" But if you want to simplify it, one can just use: fortitudo per dolorem "Strength through pain"