Ben Sira 12:8

8 When things are going well, it is hard to tell who your real friends are, but in hard times you can recognize your enemies;

Ben Sira 12:8 In-Context

6 The Most High himself hates sinners, and he will punish them.
7 Give to good people, but do not help sinners.
8 When things are going well, it is hard to tell who your real friends are, but in hard times you can recognize your enemies;
9 even your friends will leave you then. But when you are successful, your enemies will act like friends.
10 Never trust an enemy; his wickedness is as destructive as rust.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.