Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:3000[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr Muḥammad b. ʿAbdullāh al-Shāfiʿī > Isḥāq b. al-Ḥasan [Chain 2] Bakr b. Muḥammad al-Marwazī > ʿAbd al-Ṣamad b. al-Faḍl > Abū Nuʿaym > Misʿar > Abū al-Walīd al-Faqīh > ʿAbdullāh b. Muḥammad > Abū Kurayb > Ibn Abū Zāʾidah > Misʿar > Thābit b. ʿUbayd > Ibn al-Barāʾ > al-Barāʾ

When we prayed behind the Messenger of Allah ﷺ we cherished to be on his right side so that his face would turn towards us (at the end of the prayer), and he (the narrator) said: I heard him say: O my Lord! save me from Thy torment on the Day when Thoil, wouldst raise or gather Thy servants. (Using translation from Muslim 709a)   

البيهقي:٣٠٠٠أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أَخْبَرَنِي أَبُو بَكْرٍ مُحَمَّدُ بْنُ عَبْدِ اللهِ الشَّافِعِيُّ ثنا إِسْحَاقُ بْنُ الْحَسَنِ ح وَأَخْبَرَنَا بَكْرُ بْنُ مُحَمَّدٍ الْمَرْوَزِيُّ ثنا عَبْدُ الصَّمَدِ بْنُ الْفَضْلِ قَالَا ثنا أَبُو نُعَيْمٍ ثنا مِسْعَرٌ وَأَخْبَرَنِي أَبُو الْوَلِيدِ الْفَقِيهُ ثنا عَبْدُ اللهِ بْنُ مُحَمَّدٍ ثنا أَبُو كُرَيْبٍ ثنا ابْنُ أَبِي زَائِدَةَ عَنْ مِسْعَرٍ عَنْ ثَابِتِ بْنِ عُبَيْدٍ عَنِ ابْنِ الْبَرَاءِ عَنِ الْبَرَاءِ قَالَ

كُنَّا إِذَا صَلَّيْنَا خَلْفَ رَسُولِ اللهِ ﷺ أَحْبَبْنَا أَنْ نَكُونَ عَنْ يَمِينِهِ لَيُقْبِلَ عَلَيْنَا بِوَجْهِهِ قَالَ فَسَمِعْتُهُ يَقُولُ رَبِّ قِنِي عَذَابَكَ يَوْمَ تَبْعَثُ عِبَادَكَ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي كُرَيْبٍ

See similar narrations below:

Collected by Muslim
muslim:709aAbū Kurayb > Ibn Abū Zāʾidah > Misʿar > Thābit b. ʿUbayd > Ibn al-Barāʾ > al-Barāʾ

When we prayed behind the Messenger of Allah ﷺ we cherished to be on his right side so that his face would turn towards us (at the end of the prayer), and he (the narrator) said: I heard him say: O my Lord! save me from Thy torment on the Day when Thoil, wouldst raise or gather Thy servants.  

مسلم:٧٠٩aوَحَدَّثَنَا أَبُو كُرَيْبٍ أَخْبَرَنَا ابْنُ أَبِي زَائِدَةَ عَنْ مِسْعَرٍ عَنْ ثَابِتِ بْنِ عُبَيْدٍ عَنِ ابْنِ الْبَرَاءِ عَنِ الْبَرَاءِ قَالَ

كُنَّا إِذَا صَلَّيْنَا خَلْفَ رَسُولِ اللَّهِ ﷺ أَحْبَبْنَا أَنْ نَكُونَ عَنْ يَمِينِهِ يُقْبِلُ عَلَيْنَا بِوَجْهِهِ قَالَ فَسَمِعْتُهُ يَقُولُ رَبِّ قِنِي عَذَابَكَ يَوْمَ تَبْعَثُ أَوْ تَجْمَعُ عِبَادَكَ