To what do these words apply? To fasts in which they pray Mincha and Neilah. But a fast that does not have Neilah, such as Tisha B'Av, the seventeenth of Tammuz, and the tenth of Tevet, and likewise every communal fast among us, since their Mincha prayer is close to the setting of the sun—it appears like Neilah and is not confused with the Mincha of every day, and therefore it contains nesi'at kapayim. And a kohen who transgressed and ascended the duchen during Mincha of Yom Kippur, since it is a known matter that there is no drunkenness there—he performs nesi'at kapayim. And we do not remove him because of suspicion, so that they should not say he was unfit and therefore they removed him. So wrote the Rambam at the beginning of the fourteenth chapter of Tefillah, see there. And so wrote the Tur and the Shulchan Aruch. And in the name of the Bahag, the Tur wrote that on Yom Kippur they perform nesi'at kapayim during Mincha, because they increase supplications and it is also close to the sunset. And he wrote that in Ashkenaz they do not practice this, see there. And among us, in any case, aside from Musaf we do not perform nesi'at kapayim. (And from this it appears that they used to pray Mincha every day several hours before nightfall, because they wanted to eat after Mincha. So wrote the Magen Avraham, subsection 2, in the name of the Ran. And only on a fast would they pray close to the sunset.)
במה דברים אמורים? בתעניות שמתפללין בו מנחה ונעילה. אבל תענית שאין בו נעילה, כגון תשעה באב ושבעה עשר בתמוז ועשרה בטבת, וכן כל תענית ציבור אצלינו הואיל ותפילת מנחה שלהם סמוך לשקיעת החמה – הרי נראית כנעילה ואינה מתחלפת במנחה של כל יום, ולפיכך יש בה נשיאת כפים. וכהן שעבר ועלה לדוכן במנחה של יום הכיפורים, הואיל והדבר ידוע שאין שם שכרות – הרי זה נושא כפיו. ואין מורידין אותו מפני החשד, שלא יאמרו פסול היה לפיכך הורידוהו. כן כתב הרמב"ם בריש פרק ארבעה עשר מתפילה, עיין שם. וכן כתבו הטור והשולחן ערוך. ובשם בה"ג כתב הטור דביום הכיפורים נושאין כפים במנחה, מפני שמרבים בתחנונים והיא גם כן סמוך לשקיעה. וכתב דבאשכנז אין נוהגים כן, עיין שם. ואצלינו בלאו הכי לבד ממוסף אין נושאין כפים. (ומזה נראה שהיו מתפללין מנחה בכל יום כמה שעות קודם הלילה, מפני שהיו רוצין לאכול אחר מנחה. כן כתב המגן אברהם סעיף קטן ב' בשם הר"ן. ורק בתענית היו מתפללין סמוך לשקיעה.)