Hadith.1274 - Abu Basir asked Imam Jafar ibn Muhammad Al-Sadiq عليه السلام about a man who, while traveling, prays four rak'ahs (instead of two) out of forgetfulness.
The Imam said: "If he remembers it on that same day, he should repeat (the prayer). If he does not remember until the day has passed, then there is no need for him to repeat it”.