בְּהֵעָצֵ֧ר הַשָּׁמַ֛יִם וְלֹֽא־יִהְיֶ֥ה מָטָ֖ר כִּ֣י יֶֽחֶטְאוּ־לָ֑ךְ וְהִֽתְפַּלְל֞וּ אֶל־הַמָּק֤וֹם הַזֶּה֙ וְהוֹד֣וּ אֶת־שְׁמֶ֔ךָ מֵחַטָּאתָ֥ם יְשׁוּב֖וּן כִּ֥י תַעֲנֵֽם׃
Se o céu se fechar e não houver chuva, por terem pecado contra ti; se orarem, voltados para este lugar, e confessarem o teu nome, e se converterem dos seus pecados, quando tu os afligires,
Hasagot HaRamban
The rav wrote the fifth mitzvah, that we were commanded with service, as it says "And you shall serve the LORD your God..." (Shemot 23:25), and it says "to serve Him with all your hearts". He (z"l) said: even though this mitzvah is one of the general mitzvot, which is to say, that are not counted, as we explained in Principle 4, there is also a specific piece, and that is the commandment of prayer. The language of the Sifrei: '"and to serve Him" - this is prayer.' And in the mishna of Rabbi Eliezer the son of Rabbi Yosi haGalili, he said: from where is the principality of prayer among the mitzvot? As it says, "your God fear, and Him serve". And we say: serve in His Torah, serve in His Temple? Meaning: to go there to pray, as Shlomo explained. All these are the words of the rav. And he's not correct in this, as the sages already explained in the Gemara that prayer is a rabbinic commandment, like it says in the third chapter of Brachot (21) regarding a ba'al keri who says the Shema and blesses after his meal, that he doesn't pray - and they brought up a reason for this, rather that saying the Shema and blessing of the meal are Biblical and prayer is rabbinic. And in Sukkah 38a, they say regarding prayer, as it says: if he began [to eat before praying] don't stop him [so he can pray], and they gathered this from the lulav, as it says he takes it at his table - therefore he must stop! And they responded, asking what's the problem? This [lulav] is Biblical and this [prayer] is rabbinic! And we already saw in the Laws of Prayer that he said, a person is Biblically obligated in prayer every day, it's just that the number and content of the prayers aren't Biblical. And thus he wrote in this article regarding the tenth mitzvah, that the times of prayer are not Biblical, but the obligation itself is Biblical. And this is also incorrect in my eyes! Since the ba'al keri blesses the blessing of the meal after the meal, since that is Biblical, and does not pray until he immerses, even if he remained many days in his keri status! And further: a person who was rendered unable to pray in the morning, and in the afternoon is unsure whether they prayed or not: if so, according to the words of the rav he would need to go back and pray [again]! And they decided that in every case, every doubt of prayer, that a person does not go back and pray, since it's rabbinic! And if it's not a mitzvah every day, when will this duty be laid upon us? From this reasoning, perhaps once a year? Or once in a person's life?! And it's already been said of Rav Yehuda that he would pray every thirty days, since he was busy with Torah and relied on what they said: friends who are busy with Torah stop to say Shema but don't stop to pray, since that is rabbinic. [In any case, since one can't say that the obligation from this reasoning is only every thirty days] rather, certainly every matter of prayer isn't obligatory at all, rather it's from an attribute of kindness from the Blessed Creator to us, that He hears and answers in all of our calls to Him, and the main thing of the verse "And to serve Him with all your hearts" is a positive commandment that all our service should be towards the Exalted God with all of our hearts - that is to say with intention, willing and whole, to His Name, and with no evil thoughts. Not that one should do the mitzvot without intention or doubtfully - "perhaps there's a purpose to these" - like the matter of "And you shall love the LORD your God with all your heart and with all your lives and all your means" - that the mitzvah is to love God with each and every heart, and that we endanger ourselves with love of Him with our lives and our money. And that which is explicated in the Sifrei "and to serve Him - this is Torah study; another explanation - this is prayer" is just a casual link, or to say that out of the generality of Service we should learn His Torah and we should pray to Him in the time of troubles. And our eyes and heart should be to Him, like the eyes of slaves to the hand of their masters, and this is like the thing that was written: "And if you go to war in your land against the enemy that oppresses you [הצר הצורר אתכם], then you shall blow an alarm [הרעותם] with the trumpets; and you shall be remembered before the LORD your God" (Bamidbar 10:9). And this is a mitzvah regarding trouble [צרה] that comes to the community, to call out before it in prayer and in shouting [תרועה]. And this is a matter that Shlomo, peace be upon him, explained, as it is written "When the heaven is shut up, and there is no rain" (II Chronicles 6:26), and it is written: "If there should be dearth in the land, if there should be pestilence, if there should be blight, or mildew, locust, or caterpillar; if their enemies besiege them in the cities of their land; whatever sore or whatever sickness there be: then whatever prayer or whatever supplication shall be made by any man, or by all Thy people Yisra᾽el, (for everyone shall know his own trouble and his own grief,) and he spread out his hands towards this house" (II Chronicles 6:28-9). And we already explained there in the Sifrei, Rabbi Eliezer ben Ya'akov says: "and to serve him with all your hearts and with all your lives": why did the Torah say? Was it not already said "with all your heart"? There for an individual and here for a community, here for study, here for action. He said that we are commanded to serve God with all our hearts: with the study of His Torah and with the doing of His mitzvot. And so too this is repeated there, "Him you will serve" - serve Him in His Torah, serve Him in His Temple. Meaning to say that one should serve Him in His Temple with the service of the sacrifices and the song and the bowing there, in addition to the service of the mitzvot, since the verse says: after the Lord your GOD you should walk and Him you should fear, and His mitzvot you should keep. And they explain there in the Sifrei: His mitzvot you should keep, this is the Torah of Moshe. And His voice you should hark to: the voice of His prophet. Behold, the performance of all the mitzvot was already said, and for this reason they explained: and Him you should serve, with the service of the Temple. And they said clearly the general rule of the verse: serve Him with His Torah, serve Him with His mitzvot - to say that He first commanded to serve Him with His Torah, meaning, performance of all the mitzvot, from the first part of the verse. And He commanded to serve Him in His Temple with "and Him you shall serve", since with this it will all be our service, whole, to Him (may He be exalted), and behold those are inclusive commandments. However, since He commanded us with a verse "with all of your hearts" in a new thing, that all our hearts should be unified to Him (may He be exalted) in the performance of the mitzvot, as I explained: therefore that these mitzvot should come in the count of the 248 positive mitzvot. And from this claim to him he didn't count the general/overarching mitzvot, since they were already counted in their details/specifics, and since the doubled mitzvah from the mitzvot twice, three specifically. Rather, one, since they didn't count both of them, since there's only one in generality, but however: if one explains in their doubling and adds something that's count-worthy, they should count. And if, perhaps, there should be in their explaining a principle of prayer from the Torah, it should be counted in the count of the Rav, and it should be said that it is a mitzvah at the time of troubles that are said that He, may He be blessed, may He be exalted, listens to prayer, and He saves from trouble with prayer and cries, and understand this.
Rashi
I have heard your prayer With the wording that Solomon used, “And You shall hear.” The Holy One, blessed be He, answered him: “I have heard your prayer.” He prayed, (above 6:26): “When heaven is closed up.” And the Holy One, blessed be He, answered him, “If I close up.” He prayed concerning famine and locusts, and the Holy One, blessed be He, answered him, “if I command locusts.” He prayed concerning pestilence, and the Holy One, blessed be He, answered him, “or if I send pestilence upon My people.