Reference: http://lohaidan.af.org.sa/node/222
Question: A traveller arrived [in town] and found the [local] people praying [the] ‘asr [prayer]; they had [already] prayed two rak’ahs, [so] he joined them for the [final] two rak’ahs. [Considering he is a traveller, should he suffice with just praying these two rak’ahs with them or] should he complete the prayer [by praying all four rak’ahs]?
Response: Rather, he should complete [the prayer]. If a traveller joins the local residents [in prayer], then his prayer will be [as] the prayer of the local residents; [so] whatever he is able to catch, he should pray, and whatever he has missed, he should make up.