The World Federation One Stop Fiqh

Ruling 1307

If before reaching the permitted limit a person who is sitting on a ship or train starts performing prayers with the intention of tamām prayers, but before performing rukūʿ of the third rakʿah he reaches the permitted limit, he must perform prayers in qaṣr form.