The general principle is that one should always seek shalom (peace) – that there should be shalom among people; and there should be shalom in each person, that is to say, one should not be divided in one’s character traits irregardless of what happens in life.
Rather, there should be no difference to a person whether things are good or bad, for one will always find Hashem in it and should praise Him for it. As King David says: “With Hashem I will praise the matter, with Elokim I will praise the matter” (T’hillim 56:11). Even in the face of the attribute of judgment (Elokim) I will praise Him.
Rebbe Nachman, Likutei Moharan I: 33, as cited in The Inner Stream Torah Insights on the Parsha of the Week, by Mohorosh of Heichal HaKodesh Breslov
By Yaakov Shmuel