SAEDNEWS: One of the religious matters concerning prayer is knowing the conditions under which a traveler is required to perform shortened prayers. In Islam, eight conditions have been outlined that determine when a traveler must shorten their prayers.
According to Saednews citing obligatory precaution, an obligatory prayer should not normally be shortened voluntarily. However, a traveler must shorten the Dhuhr, Asr, and Isha prayers to two rak‘ahs when the required conditions are met.
The main conditions are:
Distance: The journey must be at least eight shar‘i farsakhs. If the outward journey is at least four farsakhs and the return makes the total eight, the prayer is shortened.
Intention: The traveler must intend an eight-farsakh journey from the beginning.
Continuing the journey: The traveler must not abandon or become uncertain about the journey before reaching four farsakhs.
No interruption by hometown or ten-day stay: The traveler must not intend to pass through their hometown or stay somewhere for ten days before completing the required distance.
Not a sinful journey: A journey undertaken for a sinful purpose requires full prayers. Lawful travel, including recreation, requires shortened prayers.
Not a nomadic lifestyle: Nomads who regularly move from place to place generally perform prayers in full during their ordinary movements, although travel for purposes such as Hajj, pilgrimage, or trade is treated differently.
Travel is not the person's occupation: Professional travelers such as drivers, sailors, and similar workers generally perform prayers in full during work-related journeys, except under specific circumstances such as their first work journey or certain personal trips.
Reaching the legal travel boundary: The traveler must reach hadd al-tarakhkhus—the point where the walls of the hometown can no longer be seen and its normal call to prayer can no longer be heard.

A person's established place of residence is considered their hometown. If they abandon a former hometown, it no longer has that status.
A person may have two hometowns if they regularly live in both places.
A traveler who intends to remain in one place for ten consecutive days must perform prayers in full there.
If the person is uncertain about staying ten days, they normally continue shortening their prayers.
After performing a four-rak‘ah prayer following the intention to stay ten days, changing that intention generally does not restore shortened prayers while the person remains there.

If a traveler remains in one place for thirty days while undecided about leaving or staying, they must perform prayers in full from the thirty-first day.
These rules concern the conditions under which a traveler changes the four-rak‘ah Dhuhr, Asr, and Isha prayers into two-rak‘ah prayers.