Sirach 6:8

8 For some man is a friend for his own occasion, and will not abide in the day of thy trouble.

Sirach 6:8 In-Context

6 Be in peace with many: nevertheless have but one counsellor of a thousand.
7 If thou wouldest get a friend, prove him first and be not hasty to credit him.
8 For some man is a friend for his own occasion, and will not abide in the day of thy trouble.
9 And there is a friend, who being turned to enmity, and strife will discover thy reproach.
10 Again, some friend is a companion at the table, and will not continue in the day of thy affliction.

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