proverb

Adversity is the only balance to weigh friends.

adversity

states that

A real friend is someone who will help you when you are in trouble; and he or she is the only friend worth having. (Said by Plutarch)

also

A friend in need is a friend indeed.