"Allah (SWT) enjoined the prayer on the tongue of your Prophet ﷺ: four (rak'ahs) while a resident, two rak'ahs while traveling, and one rak'ah during times of fear."
فَرَضَ اللَّهُ الصَّلاَةَ عَلَى لِسَانِ نَبِيِّكُمْ ﷺ فِي الْحَضَرِ أَرْبَعًا وَفِي السَّفَرِ رَكْعَتَيْنِ وَفِي الْخَوْفِ رَكْعَةً