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