كتاب الصلاة
4  
The Book of Prayers
(22)
Chapter: The Congregation Appointing Someone To Lead Them If The Imam Is Delayed And If There Is No Fear Of Negative Repercussions
(22)
باب تَقْدِيمِ الْجَمَاعَةِ مَنْ يُصَلِّي بِهِمْ إِذَا تَأَخَّرَ الإِمَامُ وَلَمْ يَخَافُوا مَفْسَدَةً بِالتَّقْدِيمِ
Sahih Muslim 421 b

This hadith is transmitted by Sahl b. Sa'd in the same way as narrated by Malik, with the exception of these words:

" Abu Bakr lifted his hands and praised Allah and retraced his (steps) till he stood in a row."
حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا عَبْدُ الْعَزِيزِ، - يَعْنِي ابْنَ أَبِي حَازِمٍ - وَقَالَ قُتَيْبَةُ حَدَّثَنَا يَعْقُوبُ، - وَهُوَ ابْنُ عَبْدِ الرَّحْمَنِ الْقَارِيُّ - كِلاَهُمَا عَنْ أَبِي حَازِمٍ، عَنْ سَهْلِ بْنِ سَعْدٍ، بِمِثْلِ حَدِيثِ مَالِكٍ ‏.‏ وَفِي حَدِيثِهِمَا فَرَفَعَ أَبُو بَكْرٍ يَدَيْهِ فَحَمِدَ اللَّهَ وَرَجَعَ الْقَهْقَرَى وَرَاءَهُ حَتَّى قَامَ فِي الصَّفِّ ‏.‏
Reference : Sahih Muslim 421b
In-book reference : Book 4, Hadith 112
USC-MSA web (English) reference : Book 4, Hadith 846
  (deprecated numbering scheme)