同病相憐む

Etymology
Literally, "those who suffer from the same illness can sympathize best with each other."

Proverb

 * 1) misery loves company.