The World Federation One Stop Fiqh

Ruling 1347

If a person forgets that he is a traveller and performs tamām prayers, in the event that he remembers this within the time for the prayer, he must perform the prayer in qaṣr form. If he remembers this after the time for the prayer, then making it up is not obligatory for him.