It is narrated from Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) that he said: I heard the Messenger of Allah (peace and blessings be upon him) saying: "Whoever shades the head of a warrior, Allah Almighty will grant him His shade on the Day of Resurrection; and whoever prepares a warrior's provisions until he sets out (for jihad) will have a reward like that warrior's, until he dies or returns; and whoever builds a mosque (for the pleasure of Allah), Allah Almighty will build for him a house in Paradise."
Related hadith on this topic