[Machine] The Messenger of Allah ﷺ established the prayers of Dhuhr and Asr for both residents and travelers. So, just as you pray before and after Dhuhr in normal circumstances, pray before and after it while traveling. Waki' reported once to pray it while traveling.
فَرَضَ رَسُولُ اللهِ ﷺ صَلاةَ الْحَضَرِ وَالسَّفَرِ فَكَمَا تُصَلِّي فِي الْحَضَرِ قَبْلَهَا وَبَعْدَهَا فَصَلِّ فِي السَّفَرِ قَبْلَهَا وَبَعْدَهَا قَالَ وَكِيعٌ مَرَّةً وَصَلِّهَا فِي السَّفَرِ