What dictionary can say about phrase

a friend in need is a friend indeed