It is narrated from Sayyiduna Ibn Mas'ud (may Allah be pleased with him) that he said: "Whoever prays four rak'ahs while travelling should repeat the prayer."