Sirach 22:23

23 Be faithful to thy neighbour in his poverty, that thou mayest rejoice in his prosperity: abide stedfast unto him in the time of his trouble, that thou mayest be heir with him in his heritage: for a mean estate is not always to be contemned: nor the rich that is foolish to be had in admiration.

Sirach 22:23 In-Context

21 Though thou drewest a sword at thy friend, yet despair not: for there may be a returning
22 If thou hast opened thy mouth against thy friend, fear not; for there may be a reconciliation: except for upbraiding, or pride, or disclosing of secrets, or a treacherous wound: for for these things every friend will depart.
23 Be faithful to thy neighbour in his poverty, that thou mayest rejoice in his prosperity: abide stedfast unto him in the time of his trouble, that thou mayest be heir with him in his heritage: for a mean estate is not always to be contemned: nor the rich that is foolish to be had in admiration.
24 As the vapour and smoke of a furnace goeth before the fire; so reviling before blood.
25 I will not be ashamed to defend a friend; neither will I hide myself from him.

The Brenton translation of the Septuagint is in the public domain.