A man travels twice a week to Riyadh from Al-Kharj, where his family lives. In which city should he shorten his prayers, considering that he stays only two days a week with his family. What should he do when he prays in mosque considering that he must shorten prayers during travel?
The man should decide which of the two places he considers his hometown where he should pray normally. He then shortens his prayers when he travels to the other town. On face value, we say that his hometown is where his wife and children live. Although he stays with them only two days a week, he considers himself traveling when he goes to the other place, unless he feels that this is his home and his family are staying in Al-Kharj temporarily, or for a specific reason.
If he is praying in a mosque in Riyadh, he follows the imam, completing his prayers like the imam. He cannot pray with the imam two rakâahs and finish his prayers, abandoning the congregation. It is not a sin for a traveler to offer his prayers the full length, as you indicate. He certainly should avail of himself the concession given by God for travelers, because God loves that His concessions are implemented in the same way as hard duties.