Such contemplation helps not only after a sin, enabling a person to abandon it and return to Hashem, but... · לב אהרן - שמות
לב אהרן - שמותולא רק לאחר החטא תועיל ההתבוננות, לעזבו ולשוב אל ה', אלא אף קודם לו תועיל להשמר ממנו על ידה, וכפי שמראים דבריו של דוד המלך (תהילים כו, ב), שביקש מה': "בְּחָנֵנִי ה' וְנַסֵּנִי", ותמהו המפרשים, שהרי אין זה ראוי לחפוץ בנסיון, וכפי שאנו מבקשים מידי יום בברכות השחר: "ואל תביאנו וכו' ולא לידי נסיון". ובאמת שמכאן למדו זאת בגמרא (סנהדרין קז, א): "אמר רב יהודה אמר רב, לעולם אל יביא אדם עצמו לידי נסיון, שהרי דוד מלך ישראל הביא עצמו לידי נסיון, ונכשל. אמר לפניו, רבונו של עולם, מפני מה אומרים וכו', אמר לפניו, רבונו של עולם, בחנני ונסני, שנאמר, בחנני ה' ונסני וגו', אמר, מינסנא לך וכו'". וסוף דבר היה שניסהו בבת שבע, ונכשל בה. ואם כן יש לתמוה, על מה סמך דוד מעיקרא והיה בטוח בעצמו שיעמוד בנסיון.
Such contemplation helps not only after a sin, enabling a person to abandon it and return to Hashem, but also beforehand, protecting him from sin. David HaMelech asked Hashem, “Examine me, Hashem, and test me” (Tehillim 26:2). The commentators question this request. A person should not desire a test, as we pray each morning, “Do not bring us... to a test.” Indeed, the Gemara derives this principle from David himself: > “Rav Yehudah said in the name of Rav: A person should never bring himself to a test. David, king of Yisrael, brought himself to a test and failed... He said before Hashem, ‘Master of the universe, test and examine me,’ as it is written, ‘Examine me, Hashem, and test me.’ Hashem responded, ‘I will test you’...” (Sanhedrin 107a). Ultimately, David was tested through Bas Sheva and failed. On what, then, did he originally rely, and why was he confident that he would withstand the test?
And not only after sin does contemplation help—to abandon it and return to the Lord—but even before sin it is beneficial, in that it helps one guard against it. This is shown by the words of King David (Psalm 26:2), who asked of God: “Examine me, O Lord, and try me.” The commentators were puzzled, for it is not fitting to desire a test, as we pray each day in the morning blessings: “And do not bring us … into the hands of trial.” In truth, this is learned in the Gemara (Sanhedrin 107a): “Rav Yehudah said in the name of Rav: A person should never bring himself to the test, for behold, David, king of Israel, brought himself to the test and failed. He said before Him: Master of the Universe, why do they say …? He said before Him: Master of the Universe, ‘Examine me and try me,’ as it is written, ‘Examine me, O Lord, and try me,’ etc. He said: I will test you …” And in the end he was tested through Bathsheba, and failed in it. If so, one must wonder: on what did David rely at the outset, and how was he confident that he would withstand the test?
כן הובא בספר מגד תבואות שמש, מדברי תורתו של הגאון רבי משה שפירא זצ"ל.
This explanation is cited in *Meged Tevuos Shemesh* from the teachings of HaGaon Rav Moshe Shapira zt”l.
Yes, this is brought in the book *Maggid Tevuot Shemesh*, from the teachings of the gaon Rabbi Moshe Shapira, of blessed memory.