"The prayer of the resident was enjoined on the tongue of your Prophet ﷺ, four (rak'ahs), and the prayer of the traveler is two rak'ahs, and the prayer of fear is one rak'ah."
فُرِضَتْ صَلاَةُ الْحَضَرِ عَلَى لِسَانِ نَبِيِّكُمْ ﷺ أَرْبَعًا وَصَلاَةُ السَّفَرِ رَكْعَتَيْنِ وَصَلاَةُ الْخَوْفِ رَكْعَةً