It is narrated from Sayyiduna Mu'adh bin Anas al-Juhani (may Allah be pleased with him); he said: We went on a campaign with the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) sent a crier who announced: "Whoever crowds a camping place or blocks a road, his jihad is not accepted."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17570