A friend is known in hardship.

Note: Unlike a “fair weather friend” (who is no real friend at all), a true friend is one who stands by you in hard times.

Note also: If the verb tense here strikes you as being unfamiliar, it is the ever popular independent form of the present habitual.