Narrated by Aisha (may Allah be pleased with her), she stated that the Messenger of Allah (ﷺ) sometimes shortened the prayer during travel and sometimes performed it in full.
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 356
Hadith Takhrijإسناده ضعيف جداً: فإن إبراهيم بن محمد وطلحة بن عمرو متروكان. أخرجه البيهقي في معرفة السنن والآثار: 1514 - والدارقطني: 2/ 189 - وابن أبي شيبة: 8187.