Sayyiduna al-Nu'man bin Bashir (may Allah be pleased with him) said: I was near the pulpit of the Messenger of Allah (peace and blessings be upon him) when a man said: I do not care if I do no deed after Islam except maintaining the Sacred Mosque. Another said: Jihad in the path of Allah is better than what you said. So Sayyiduna Umar (may Allah be pleased with him) rebuked them and said: Do not raise your voices near the pulpit of the Messenger of Allah (peace and blessings be upon him). It was Friday. After the Friday prayer I will ask about the matter you have differed over. Then Allah Almighty revealed this verse: "Have you made the providing of water to the pilgrims and the maintenance of the Sacred Mosque like (the deeds of) one who believes in Allah and the Last Day and strives in the path of Allah? They are not equal in the sight of Allah. And Allah does not guide the wrongdoing people." [Surah al-Tawbah: 19]
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 18490