It is narrated from Sayyiduna Ibn Mas'ud (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) would sometimes fast during travel and sometimes break his fast. During travel, he (peace and blessings be upon him) would perform the obligatory prayers as two rak'ahs and would not add to them.