عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: صَلَّى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ صَلَاةَ الْخَوْفِ بِذِي قَرَدٍ، أَرْضٍ مِنْ أَرْضِ بَنِي سُلَيْمٍ، فَصَفَّ النَّاسُ خَلْفَهُ صَفَّيْنِ صَفٌّ مُوَازِي الْعَدُوِّ، فَصَلَّى بِالصَّفِّ الَّذِي يَلِيهِ رَكْعَةً ثُمَّ نَكَصَ هَؤُلَاءِ إِلَى مَصَافِّ هَؤُلَاءِ، وَهَؤُلَاءِ إِلَى مَصَافِّ هَؤُلَاءِ، فَصَلَّى بِهِمْ رَكْعَةً أُخْرَى (زَادَ فِي رِوَايَةٍ) فَكَانَتْ لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ رَكْعَتَيْنِ وَلِكُلِّ طَائِفَةٍ رَكْعَةً
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both), he says: The Messenger of Allah (peace and blessings be upon him) performed the prayer of fear in a region of Banu Sulaym, Dhi Qarad. The people formed two rows behind him; one row remained facing the enemy and one stood behind the Prophet (peace and blessings be upon him). The row that was with the Prophet (peace and blessings be upon him), he led them in one rak‘ah, then these people moved to the place of the others and those came to their place, and the Prophet (peace and blessings be upon him) led them in the remaining one rak‘ah. In another narration, it is stated: The Prophet (peace and blessings be upon him) performed two rak‘ahs and each group performed one rak‘ah.