The Rambam · Sefer Ahavah
הלכות תפילה וברכת כהנים י׳Prayer and the Priestly Blessing 10
Chapter 10 of 15 in Prayer and the Priestly Blessing — 16 halachot
Halacha 1א׳
מי שהתפלל ולא כיון את לבו יחזור ויתפלל בכוונה ואם כיון את לבו בברכה ראשונה שוב אינו צריך מי שטעה באחת משלש ברכות הראשונות חוזר לראש ואם טעה באחת משלש ברכות אחרונות יחזור לעבודה ואם טעה באחת מן האמצעיות חוזר לתחלת ברכה שטעה בה ומשלים תפלתו על הסדר וכן ש"צ שטעה כשהוא מתפלל בקול רם על דרך זו הוא חוזר.
If one has recited the Amidah without devotion, he should recite it again devoutly. If he, however, concentrated his attention during the recital of the first blessing, he need not read the prayer again. If one committed an error in one of the first three blessings, he has to turn back to the beginning of the Amidah. If he made a mistake in one of the last three blessings, he turns back to the blessing relating to the restoration of the Temple Service. If he made a mistake in one of the intermediate blessings, he turns back to the beginning of the blessing in which he made the mistake, and then continues the Service in regular order to the end. The reader, if he makes a mistake when reading the Amidah aloud, follows the same rules.
Halacha 2ב׳
אבל אם טעה ש"ץ כשהוא מתפלל בלחש אני אומר שאינו חוזר ומתפלל פעם שנייה מפני טורח ציבור אלא סומך על התפלה שמתפלל בקול רם והוא שלא טעה בשלש ראשונות שאם טעה בהם לעולם חוזר כמו שהיחיד חוזר.
But if the reader made a mistake while silently reading the Amidah, he does not, in my opinion, recite it silently a second time, so as not to incommode the congregation. He relies on his repetition of the Amidah which he will recite aloud. This is so if he had made no mistake in the first three blessings. If however the mistake was in one of these, he turns back to the beginning of the Amidah, like any layman.
Halacha 3ג׳
שליח ציבור שטעה ונבהל ולא ידע מהיכן יתחיל ושהה שעה יעמוד אחר תחתיו ואם טעה בברכת האפיקורסין אין ממתינין לו אלא מיד יעמוד אחר תחתיו שמא אפיקורסות נזרקה בו והוא שלא התחיל בה אבל אם התחיל בה ממתינין לו שעה ולא יהא השני סרבן באותה שעה.
If a reader, having made a mistake, became confused and did not know where to resume, another person, after awhile takes his place. If he made a mistake in connection with the blessing concerning heretics, the congregation does not wait for him, but another person immediately takes his place, for possibly he may have become tainted with heresy. This rule holds good if he had not yet begun reciting this blessing. But if he had commenced it, the congregants wait for him awhile.
Mishneh Torah, Hebrew Wikisource edition, via Sefaria — CC BY-SA
English: The Mishneh Torah by Maimonides, tr. Moses Hyamson, 1937-1949 — public domain