At the conclusion of last week’s perasha, Abraham faced the extraordinary test of the Akedah. G-d commanded him to offer his son, Yishaq, as a sacrifice. Abraham, eager to fulfill G-d’s commandment, set out to complete the task. At the last possible second, G-d told Abraham not to proceed; the entire episode had been a test and Yishaq was spared.

Our perasha this week begins with Sarah’s death. The Torah records her passing without explaining its cause. Coming immediately after the Akedah, it’s natural to wonder whether these two events are somehow connected.

The Midrash (Midrash Tanhuma, Vayera 23) seems to connect her death to the Akedah. Satan appeared to Sarah in the form of Yishaq and began giving her a live play-by-play account of what was happening. Little by little, he described Abraham preparing the altar and Yishaq being readied as a sacrifice. Only at the very end did he reveal that G-d commanded Abraham to stop and Yishaq was spared. Sarah was taken through an unimaginable roller coaster of emotions, and upon hearing the entire account, she passed away.

Reading this Midrash, a troubling question comes to mind. How could something as holy as the Akedah possibly result in something so tragic? Abraham had just demonstrated his willingness to do whatever G-d would ask of him. Instead, he faced the loss of Sarah, his wife, his life partner, and the mother of their son, Yishaq.

The Netivot Shalom asks this same question and takes it a step further. He cites the pasuk in Kohelet (8:5), “One who keeps a commandment will know no evil.” Similarly, the Gemara (Pesahim 8b) teaches that those traveling to perform a misva are protected from harm, including on their return journey. How, then, could Abraham’s fulfillment of perhaps the greatest commandment of his life seemingly lead to such a devastating loss?

The Netivot Shalom adds one more wrinkle to our question. Rashi (Beresheet 21:12) teaches that Sarah’s level of prophecy was even greater than Abraham’s. This is learned from G-d telling Abraham to listen to Sarah when she insisted that Hagar and Yishmael be sent away. How could Abraham, then, endure the actual test of the Akedah, while Sarah could not withstand merely hearing about what happened? Something here doesn’t seem to add up.

The Netivot Shalom explains that we are looking at the connection between these events incorrectly. It appears that Sarah’s death was caused by the emotional shock of hearing the gut-wrenching play-by-play of the Akedah. Appearances, though, can be deceiving. In reality, Sarah’s allotted time in this world had already reached its end. She did not lose a single day of her life because of the Akedah. This, he explains, is why the Torah specifically records, “The life of Sarah was one hundred years, twenty years and seven years, the years of Sarah’s life” (Beresheet 23:1). Those were the years allotted to Sarah; the Akedah had not shortened her life.

So what really happened? Satan saw an opportunity. He had already tried to prevent Abraham from carrying out G-d’s command and failed. The Midrash tells us that on his way to the Akedah, Satan appealed to Abraham’s logic, questioning how G-d could possibly command him to sacrifice the son he had waited so many years to have. When Abraham refused to turn back, Satan continued trying to block his path. When nothing worked and he failed to stop the Akedah from taking place, Satan changed tactics. He now sought to exploit the timing of Sarah’s death so that Abraham would believe that his obedience to G-d had somehow cost him his wife.

Ponder the questions that might have entered Abraham’s mind upon learning of Sarah’s death. “Did my obedience to G-d somehow cause this? Would Sarah still be alive if I had acted differently? After everything I have done and endured, this is what follows?” According to the Netivot Shalom, this was precisely Satan’s goal. He could no longer prevent Abraham from performing the Akedah; the next best thing was to make him regret having done it.

Consider someone in the middle of an important business deal as the time for his daily Minha minyan approaches. Everything is moving quickly, and stepping away to pray feels like the worst possible time. The Yeser Hara begins working: “Just finish the deal first. You can pray later. This opportunity is once in a lifetime; don’t lose out.” Yet the person recognizes the temptation and chooses to step away and pray Minha.

He returns twenty minutes later only to discover that the deal fell through while he was gone. Suddenly, the Yeser Hara returns with an entirely different argument. “See what happened? If you hadn’t stopped to pray, you might have closed the deal.” Before Minha, he tried to stop the person from performing the misva. When that failed, he switched gears, trying to make the person regret having performed it. Perhaps next time, when Minha approaches in the middle of another important moment, that little voice becomes harder to ignore: “Remember what happened last time?” When the Yeser Hara cannot stop us from performing a misva, he may use what happens afterward to make us think twice the next time around.

How can we protect ourselves from this trap? The first step is recognizing it. When something difficult follows a misva or decision we know was right, pause before connecting the two. Ask yourself: “Did I actually make the wrong decision, or am I only questioning it because I don’t like what happened afterward?” The great mussar work Mesilat Yesharim (Chapter 2, “The Trait of Watchfulness”) teaches us to stop and examine what is really driving our thoughts and actions. Even a few minutes of regular mussar study can help us recognize the Yeser Hara’s voice before we mistake it for our own.

That may be why each night in the Hashkibenu prayer of Arbit, before the Amidah, we ask G-d to remove Satan “from before us and from behind us.” Sometimes we need strength to do what is right, and sometimes we need just as much strength not to regret doing what was right afterward. Though we are not Abraham Abinu, we are his descendants. The strength he demonstrated in overcoming the Yeser Hara became part of our spiritual DNA, passed down to each of us. Through learning mussar, strengthening our emunah, and surrounding ourselves with the right people, we can tap into that strength when facing our own daily tests. Know that when the struggle feels especially difficult, we can ask G-d directly for help, for the clarity to recognize the Yeser Hara’s tricks and the strength to overcome them. Each battle we overcome helps elevate us and brings us closer to G-d.