عَنْ جَابِرٍ رَضِيَ اللَّهُ عَنْهُ قَالَ لَمْ يَكُنْ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يَغْزُو فِي الشَّهْرِ الْحَرَامِ إِلَّا أَنْ يُغْزَى أَوْ يُغْزَوْا فَإِذَا حَضَرَ ذَلِكَ أَقَامَ حَتَّى يَنْسَلِخَ
It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) would not engage in fighting during the sacred months, except in the case when the enemy attacked him. If such a situation arose, he (peace and blessings be upon him) would wait until the sacred month had passed.
عَنِ ابْنِ بُرَيْدَةَ عَنْ أَبِيهِ رَضِيَ اللَّهُ عَنْهُ قَالَ غَزَا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ سِتَّ عَشْرَةَ غَزْوَةً
It is narrated from Sayyiduna Buraidah that he participated in sixteen battles alongside the Messenger of Allah, peace and blessings be upon him.