Anything that happens to man—good or bad—should be viewed with complete equanimity. Whether he is praised or denigrated; whether he eats delicacies or a simple repast, it should all be the same in his eyes, as he should state: “Are not both from G-d?”
Concerning this trait of equanimity, the verse (Tehillim, 16:8) states: “I have placed the Lord before me constantly.” The word that the verse employs for “I have placed,” is shivisi, which can also mean “all is made equal to me.” The reason that everything is the same is because “the Lord is before me constantly.”
(Tzavas HaRivash, article 2)