[Machine] I witnessed the Prophet ﷺ praying in the Mosque of Khayf. After he finished the prayer, he saw two men sitting aside and shivering because of the cold. The Prophet ﷺ asked them, "What prevented you from joining the prayer?" They replied, "O Messenger of Allah, we prayed in our traveling clothes." He said, "When you pray in your traveling clothes and catch up with the people in prayer, then pray with them. And the prayer that you prayed in your traveling clothes is the obligatory prayer."
شَهِدْتُ مَعَ رَسُولِ اللهِ ﷺ الصَّلَاةَ فِي مَسْجِدِ الْخَيْفِ فَلَمَّا قَضَى الصَّلَاةَ إِذَا هُو بِرَجُلَيْنِ جَالِسَيْنِ نَاحِيَةً فَأُتِيَ بِهِمَا تَرْعَدُ فَرَائِصُهُمَا فَقَالَ النَّبِيُّ ﷺ مَا مَنَعَكُمَا مِنَ الصَّلَاةِ قَالَا يَا رَسُولَ اللهِ صَلَّيْنَا فِي رِحَالِنَا قَالَ إِذَا صَلَّيْتُمْ فِي رِحَالِكُمْ وَأَدْرَكْتُمُ الصَّلَاةَ مَعَ النَّاسِ فَصَلُّوهَا مَعَهُمْ وَالَّذِي صَلَّيْتُمْ فِي رِحَالِكُمْ هِي الْفَرِيضَةُ