It is already known that the Men of the Great Assembly ordained for us three prayers every day. And they said (31a): Is it possible for a man to pray the entire day? The verse regarding Daniel states: "And three times...", see there. For this reason they said (21a): If one was standing in prayer and remembered that he had already prayed – he stops, even in the middle of a blessing. And they further said there: If it is a doubt whether he prayed or a doubt whether he did not pray – he does not return and pray. And the reason: for prayer is rabbinic, and a doubt is ruled leniently. And even according to the Rambam that prayer is from the Torah, nevertheless it has no known text and no fixed time, and is only once a day. And all of this is rabbinic, as I wrote at the beginning of siman 89. However, Rava said there: Would that a man should pray the entire day. Rashi, Tosafot, and the Ba'al HaHalachot Gedolot explained that the halacha follows Rava in a case of doubt whether he prayed, but if he certainly prayed, the halacha is that he stops even in the middle of a blessing. And such is the opinion of several of the poskim. And even though in the words of Rava a doubt whether he prayed was not mentioned at all, they wrote that since the Shas established his words regarding a doubt whether he prayed – presumably it deals with such a case. And it further appears to me because in the Yerushalmi (Chapter 4, Halacha 4) it is explicitly stated so, as it says there: They asked before Rava: A doubt if he prayed or a doubt if he did not pray? He said to them: Would that we should pray all day, for prayer does not lose out. Thus far his words; behold, it explicitly refers to a doubt. (And this is the explanation: Would that we were able to pray all day. But it is forbidden for us more than three times, as it said: Is it possible he should pray all day..., and if so, "give it" that we should not add to it. For this is specifically when he certainly prayed, but in a case of doubt he is permitted to pray. So wrote the Bach, see there.)
כבר ידוע שאנשי כנסת הגדולה תיקנו לנו שלוש תפילות בכל יום. ואמרו (לא א): יכול יתפלל אדם כל היום כולו? תלמוד לומר בדניאל: "וזמנין תלתא…", עיין שם. ולזה אמרו (כא א): היה עומד בתפילה ונזכר שהתפלל – פוסק, ואפילו באמצע ברכה. ועוד אמרו שם: ספק התפלל, ספק לא התפלל – אינו חוזר ומתפלל. והטעם: דתפילה דרבנן, וספיקא לקולא. ואפילו להרמב"ם דתפילה דאורייתא, מכל מקום אין לה נוסחא ידוע ולא זמן קבוע, ורק פעם אחת ביום. וכל זה הוא מדרבנן וכמו שכתבתי זה בריש סימן פ"ט. אמנם רבי יוחנן אמר שם: ולואי שיתפלל אדם כל היום כולו. פירשו רש"י ותוספות ובה"ג דהלכה כרבי יוחנן בספק התפלל, אבל בוודאי התפלל הלכה שפוסק אפילו באמצע ברכה. וכן דעת כמה מהפוסקים. ואף על גב דבדרבי יוחנן לא הוזכר כלל ספק התפלל, כתבו מדקבע הש"ס דבריו על ספק התפלל – מסתמא בכהאי גוונא מיירי. ועוד נראה לי משום דבירושלמי (פרק רביעי הלכה ד) מפורש כן, שאומר שם: בעון קמי רבי יוחנן: ספק נתפלל ספק לא נתפלל? אמר לון: ולואי שמתפללין כל היום, למה שאין תפילה מפסדת. עד כאן לשונו, הרי להדיא דאספק קאי. (והכי פירושו: הלואי שהיינו יכולים להתפלל כל היום. אלא שאסור לנו יותר משלוש פעמים, כמו שאמר: יכול יתפלל כל היום…, ואם כן הבו דלא להוסיף עלה. דזהו דווקא בוודאי התפלל, אבל בספק רשאי להתפלל. כן כתב הב"ח, עיין שם.)