друг познаётся в беде

Etymology
lit. 'a friend is proven in time of trouble'.

Proverb

 * 1) a friend in need is a friend indeed