Abu Zur'ah bin Amr bin Jarir al-Bajali said: Sayyiduna Umar (may Allah be pleased with him) sent out an army on a Friday, and among them was Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him). Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him) stayed behind. When, after the Friday prayer, Sayyiduna Umar (may Allah be pleased with him) passed by him, he asked: Were you not in this army? He replied: Indeed I was. Sayyiduna Umar (may Allah be pleased with him) asked: What is the matter with you? (that is, what happened?) He said: I intended to attend the Friday prayer and then set off. Sayyiduna Umar (may Allah be pleased with him) said: Did you not hear the Messenger of Allah (peace and blessings be upon him) say: "Going out in the path of Allah in the morning or in the evening is better than the world and all that is in it"?
A marfu' hadith has also been narrated on this subject, with a weak chain.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجمعة / 5655