In traveling, a companion; in life, sympathy.

Literal

Travel [topic-は] road-companion, world [topic-は] kindness.

旅は道連れ世は情け is a well-known ことわざ (proverb). It teaches that just as a companion makes a journey easier, kindness and compassion make life bearable. The parallel structure (AはB、CはD) is characteristic of Japanese proverbs.