We used to like, when we prayed behind the Messenger of Allah ﷺ, to be on his right side, so that he would turn his face toward us. He said, "I heard him say, 'My Lord, protect me from Your punishment on the Day You resurrect (or gather) Your servants.'"
كنا إذا صلينا خلف رسول الله ﷺ أحببنا أن نكون عن يمينه، يقبل علينا بوجهه. قال: فسمعته يقول: رب قني عذابك يوم تبعث (أو تجمع) عبادك.
Muslim narrated it in "Prayer of the Traveler" (709) from Abu Kurayb, who said, Ibn Abu Zaida informed us, from Masaar, from Thabit bin Ubayd, from Ibn Bara, from Bara, and he mentioned something similar.Waki narrated it from Masaar with this same chain of transmission, but he did not mention, "he would turn his face towards us." Ibn Khuzayma (1563) narrated it through this same route, saying, Muhammad bin Bashshar narrated to us, Abu Ahmad narrated to us, Masaar narrated to us, from Thabit, from Bara bin Azib, and he mentioned the hadith in similar fashion, without mentioning "he would turn his face towards us," just as he did not mention the intermediary between Thabit bin Ubayd and Bara bin Azib.There is disagreement about who Ibn Bara actually is. Abu Dawud (615) named him "Ubayd," even though he narrated it through the route of Abu Ahmad Zubayri, from Masaar, with the same wording. With Ahmad (18553), in the narration of Waki, and Ibn Khuzayma (1564), in the narration of Sufyan, both from Masaar, his name is "Yazid bin Bara." Then Ibn Khuzayma (1563) narrated it through several routes from Waki, from Masaar, from Thabit bin Ubayd, from Bara bin Azib, without any intermediary, as already mentioned. Baghawi named him "Rabi bin Bara," after narrating it through the route of Ibn Abu Zaida, from Masaar, from Thabit bin Ubayd, from Ibn Bara, from Bara. He said, Ibn Bara is Rabi bin Bara bin Azib, Sharh al-Sunnah (3/213).Ubayd bin Bara is "acceptable," Yazid bin Bara is "truthful," and Rabi bin Bara is "trustworthy," deemed so by Ajli, Ibn Hibban, and others. Perhaps leaving Ibn Bara unnamed is preferable to specifying him, since these narrations corroborate one another, and the chain is established without any intermediary. With this, the difficulty that some scholars found in this hadith is resolved.This hadith will come later in the Book of Supplications, where it states that ﷺ used to say this supplication upon going to sleep, "My Lord, protect me from Your punishment on the day You resurrect Your servants." Reconciling the two accounts is possible by saying that he used to say this both when he finished the prayer and when he went to sleep.