a friend in need is a friend indeed
A genuine friend on whom one can always depend. — A proverb; often shortened to "a friend in need..."
When John's house burned down, his neighbor Jim helped him and his family with shelter, food and clothing. John said, "Jim, a friend in need is a friend indeed — this describes you."
Source: A Dictionary of American Idioms