Doctor Faustus asks Mephistophilis why Satan seeks to enlarge his kingdom. Mephistophilis replies with the Latin phrase:
“Solamen miseris socios habuisse doloris“
This roughly translates to “It is a comfort to the unfortunate to have had companions in woe,” or simply “misery loves company”.
Doctor Faustus, by Christopher Marlowe, written in the late 16th century and first performed around 1594.