Abdullah bin Abbas reported,

Allah ordained the prayer through the tongue of your Prophet ﷺ as two units for the traveler, four units for the resident, and one unit during times of fear.

Muslim 1576

Sahih

و حدثنا أبو بكر بن أبي شيبة وعمرو الناقد جميعا عن القاسم بن مالك قال عمرو حدثنا قاسم بن مالك المزني حدثنا أيوب بن عائذ الطائي عن بكير بن الأخنس عن مجاهد

عن ابن عباس قال

إن الله فرض الصلاة على لسان نبيكم ﷺ على المسافر ركعتين وعلى المقيم أربعا وفي الخوف ركعة

مسلم 1576صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Travelers' prayer and its shortening
Chapter
Travelers' prayer and its shortening
Numbering
Darussalam 1576
Muslim 1576