Allah, the Exalted, prescribed the prayer through the tongue of your Prophet ﷺ as four units while resident, two units while traveling, and one unit during times of fear.
حدثنا مسدد وسعيد بن منصور قالا حدثنا أبو عوانة عن بكير بن الأخنس عن مجاهد
فرض الله تعالى الصلاة على لسان نبيكم ﷺ في الحضر أربعا وفي السفر ركعتين وفي الخوف ركعة