prietenul la nevoie se cunoaște

Etymology
lit. 'one can tell who is a friend when in need'.

Proverb

 * 1) a friend in need is a friend indeed