From Sahih Muslim (Hadith 950):
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: Muslim 950