bajban ismerszik meg a jó barát

Etymology
Literally: "the good friend is known in trouble".

Proverb

 * 1) a friend in need is a friend indeed