A traveler who follows a resident within the prayer time completes the four-rak'ah prayer as four.

The Traveler's Prayer: Travel Threshold, Qasr, Residence, and Watan