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 equal to that (warrior's) until he dies." Yunus (may Allah have mercy on him) also said this wording: "or (until) he returns (from jihad)." (He further said:) "And whoever builds for Allah Almighty a mosque in which the name of Allah Almighty is mentioned, Allah Almighty will build for him in return a house in Paradise."
Imam Ahmad (may Allah have mercy on him) narrated it like this.
He also narrated it from al-Hasan bin Musa (may Allah have mercy on him), from Ibn Lahi'ah (may Allah have mercy on him), through al-Walid (may Allah have mercy on him).