Sirach 12:8

8 A friend cannot be known in prosperity: and an enemy cannot be hidden in adversity.

Sirach 12:8 In-Context

6 For the most High hateth sinners, and will repay vengeance unto the ungodly, and keepeth them against the mighty day of their punishment.
7 Give unto the good, and help not the sinner.
8 A friend cannot be known in prosperity: and an enemy cannot be hidden in adversity.
9 In the prosperity of a man enemies will be grieved: but in his adversity even a friend will depart.
10 Never trust thine enemy: for like as iron rusteth, so is his wickedness.

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