عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُ أَنَّ اللَّهَ عَزَّ وَجَلَّ فَرَضَ الصَّلَاةَ عَلَى لِسَانِ نَبِيِّكُمْ عَلَى الْمُقِيمِ أَرْبَعًا وَعَلَى الْمُسَافِرِ رَكْعَتَيْنِ وَعَلَى الْخَائِفِ رَكْعَةً
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with him) that Allah Almighty, through the tongue of your Prophet, has made four rak‘ahs obligatory for the resident, two for the traveler, and one rak‘ah for the one who is in fear.