“This too will pass” is “Gam Ze Yaavor” in Hebrew, which is represented by the Hebrew letters Gimel, Zayin, Yod (GZY).
From “Israel Folklore Archive 126“:
King Solomon once searched for a cure against depression. He assembled his wise men together. They meditated for a long time and gave him the following advice: Make yourself a ring and have thereon engraved the words “This too will pass.” The King carried out the advice. He had the ring made and wore it constantly. Every time he felt sad and depressed, he looked at the ring, whereon his mood would change and he would feel cheerful.
From “An Address by Abraham Lincoln Before the Wisconsin State Agricultural Society“, 30 September 1859:
It is said an Eastern monarch once charged his wise men to invent him a sentence, to be ever in view, and which should be true and appropriate in all times and situations. They presented him the words: “And this, too, shall pass away.” How much it expresses! How chastening in the hour of pride! How consoling in the depths of affliction!