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.
Furthermore, this hadith teaches us the importance of fulfilling our obligations even when we are away from home or on a journey. We must remember that Allah SWT will reward us for our good deeds no matter where we are or what situation we find ourselves in. Therefore, it is important for us to remain steadfast in fulfilling our religious duties even when we are away from home or on a journey so that Allah SWT may accept our prayers and reward us accordingly.