Sahih Muslim, Book 6, Hadith 26 (Muslim 1581)

This hadith has been narrated by Shu'ba with the same chain of transmitters but no mention has been made of Mina, but they (the narrators) only said:

He prayed while travelling.