Another way to say "A friend in need is a friend indeed." is "one of the purpose of friendship is to give and receive aid."