Sahih Muslim #421 b
The Book of Prayers 4:112
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."