"V'Nakeh Lo Yinakeh", and acquit Hashem does not acquit (Ki Sisa
34:7). This pasuk is the source of the Midas HaDin and all the
troubles that seem to befall us in life. The Gaon HaKadosh MiKozhnitz
tells us that if you take the words V'Nakeh and Yinakeh, and remove the
letters Kuf and Nun from each of these words, the remaining letters are
the Shem HaShem.
This is the meaning of the mishna in Pirkei Avos (4:27), "Al Tistakel B'KanKan
Eleh B'Ma SheYesh Bo", don't look at the jug, only what is in it. Kan
and Kan are the exterior of our Tzaros. We tend to focus on our pain
rather than the underlying issue. The Mishna tells us when we are in a
situation of Nakeh Lo Yinakeh, we should not focus on the facade which
is the Kuf Nun Kuf Nun, but rather the remaining letters of Hashem. We
must realize that within this ordeal, Hashem is close to us and holding
our hand. Everything is directed by Hashem for a good reason and we
should use it to get close to Him.
Rav Yehuda Asad says that this is what we say in Maoz Tzur, "UMiNosar Kankanim Naaseh Nes
LaShoshanim". From the Shem Hashem that stood behind the wars and the
tzaros of Antiochus, which were merely empty jugs testing our resolve,
Naaseh Nes LaShoshanim, a great miracle occurred for those who passed
the test and came out smelling like roses.