I fought along with the Prophet ﷺ in such and such battles. The people occupied much space and encroached on the road. The Prophet ﷺ sent an announcer to announce among the people: Those who occupy much space or encroach on the road will not be credited with jihad. (Using translation from Abū Dāʾūd 2629)
مُعَاذٌ أَيُّهَا النَّاسُ إِنَّا غَزَوْنَا مَعَ رَسُولِ اللهِ ﷺ غَزْوَةَ كَذَا وَكَذَا فَضَيَّقَ النَّاسُ الطَّرِيقَ فَبَعَثَ النَّبِيُّ ﷺ مُنَادِيًا فَنَادَى مَنْ ضَيَّقَ مَنْزِلًا أَوْ قَطَعَ طَرِيقًا فَلَا جِهَادَ لَهُ