عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: غَزَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ سِتَّ مِرَارٍ قَبْلَ صَلَاةِ الْخَوْفِ وَكَانَتْ صَلَاةُ الْخَوْفِ فِي السَّنَةِ السَّابِعَةِ
It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with him), he says that the Messenger of Allah (peace and blessings be upon him) undertook six expeditions before the Prayer of Fear, and the Prayer of Fear was legislated in the seventh year after the Hijrah.