Sefer Chasidim Siman 160
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
אם באת לידי נסיון והתאפקת לחטוא אל תחזיק טובה לך לומר עמדתי בנסיון שמא באו אבותיך לאותה מדה וכשלא חטאו בקשו מהקב"ה כשיבואו בניו באותה מדה שיתאפקו בהם מחטוא שנאמר (בראשית כב ח) אלהים יראה לו השה לעולה בני ויקרא שם המקום ההוא ה' יראה שיהו בניו נשחטים על קידוש ה' ונשרפים כיצחק ותברך להקב"ה שהחזיקך על יצרך שנתן לך לב לנצח את יצה"ר שנאמר (דברי הימים ב לב לא) כי עזבו אלהי' לנסותו עזבו מכלל שבידו הכל לכך בקש מלפניו שנא' (תהלים פו יא) יחד לבבי ליראה שמך וכתיב (תהלים נא יב) ורוח נכון חדש בקרבי:
If you were put to a test and you kept yourself from sinning, do not boast of it saying, “I withstood the test.”¹, ed. Horeb, Genesis, Chapter LII, p. 110. Perhaps your forefathers came to the same test and did not sin and they asked of the Holy One, blessed be He, that when their sons come to the same test they be given the power to keep from sinning,² ed. Horeb, Leviticus, Chapter XXXII, p. 88. for it is said, “God will provide Himself the lamb for a burnt offering my son etc.… and Abraham called the name of that place Adonaijireh”³ (Gen. 22:8-15). His children will be slaughtered in Sanctification of the Name and burnt like Isaac.⁴ You should bless the Holy One because he strengthened you over your inclination, and gave you a heart to be victorious over your evil inclination,⁵ for it is said, “God left him to try him” (II Chron. 32:31). “Left him,” from this it is apparent that all is in His hand. For this reason David entreated Him, for it is said, “Make one my heart to fear Thy name” (Ps. 86:11), and it is written, “And renew a steadfast spirit within me” (Ps. 51:12).
footnotes: ¹ Midrash Rabbah ² Midrash Rabbah, ³ See Perush. ⁴ And do not sin. ⁵ Kiddushin 30b.