In the final beracha (blessing) of the Amidah, we read the beracha of Sim Shalom: tovah u'beracha, chayim, chen v'chesed (kindness). We say, “Hashem, please give us peace and good and beracha in our life.” The question is that we know the Amidah is broken down into three parts: the first three berachot, where we praise Hashem; the middle section of the Amidah, where we make our requests; and the final three berachot of the Amidah, where we thank Hashem for what He has given us. But if you look at the beracha of Sim Shalom, it sounds like we're going back into request mode. Hashem, please give us peace, and then good and blessing and life and chesed. Hashem, please be good to us. It sounds like we're going back to the request. So the question is: if this is where we're supposed to be thanking Hashem, why do we start making requests again in the beracha of Sim Shalom?
The answer to this question is that in life, when you're given beracha, when Hashem gives you something, if you do not have shalom—the peace—you cannot appreciate the beracha that you have. For example, you have a beautiful home. You have a nice, gorgeous, multi-million-dollar home, and you say, “Wow, if I lived in a house like that, I would be so happy.” The answer is, “Yeah, maybe the outside of the house looks good. But if, on the inside of the house, the people are not b'shalom, the people are not getting along with each other, then no matter how beautiful the house is on the inside, it's a miserable life that's going on inside.” That's why any time a person talks about the beracha that Hashem is giving them, they have to end off saying, “I'm going to be b'shalom.” As we end the Amidah here with Sim Shalom, we say, “Hashem, give me peace.” That's why, when we finish the Amidah, we say, “Oseh shalom bimromav, hu ya'aseh shalom aleinu”—Hashem, you make peace up in the heaven, make peace for me as well—because I want to be able to enjoy all the beracha You give me.
That's why, at the end of Birkat Hamazon, when we thank Hashem for the food and the sustenance He gives us, we end with Oseh shalom. That's why, at the end of Birkat Kohanim, when the Kohanim (priests) are blessing us, we say, “V'yasem lecha shalom, V'yasem lecha shalom”—Hashem should give you peace—because otherwise all these berachot are not going to do anything for you if you don't have peace afterwards. Even the final Mishnah in all of Shas tells us, “Lo matza Kadosh Baruch Hu keli machzik beracha”—Hashem did not find a utensil, a vessel that could hold beracha l'Yisrael for the Jewish people—“ela shalom,” only peace. This means that even with Torah learning, you can't enjoy Torah if you don't have shalom with the people around you.
Now, back to our question: why is this an element of thanks? The answer is that thanks, gratitude, is how you end things correctly. Somebody gives you something, you tell them thank you, and you make sure that when you leave that person, you understand and recognize what that person just did for you. Over here, we're ending our Amidah, and we're saying, “Hashem, I just connected with You. Hashem, I just made requests from You. Hashem, I just praised You. And now, Hashem, I want to show You that I want to enjoy all the things from the connection I just made with You.” The only way to enjoy them, Hashem, is if You give me peace. By asking for shalom, we show how much we appreciate and value the beracha Hashem gives us. That's an element of saying thank you. Because when you appreciate something, you say thank you. When you appreciate something, you make sure you safeguard it, you make sure you hold on to it tight, you make sure you keep it. So we're showing Hashem, “Hashem, we're so thankful for what You gave us. And Hashem, we want to hold on to it. The only way we can hold on to it is if You give us shalom.” Have a great day.