It is narrated from Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) that he said: The Messenger of Allah (peace and blessings be upon him) said: "Whoever shades the head of a warrior, Allah Almighty will grant him His shade on the Day of Resurrection; whoever equips a warrior in the path of Allah with the provisions for jihad will have a reward equal to that warrior's; and whoever builds a mosque in which the name of Allah, the Mighty and Majestic, is mentioned, Allah Almighty will build for him a house in Paradise."
Imam Ibn Majah (may Allah have mercy on him) narrated it in his "Sunan" through Abu Bakr bin Abi Shaybah, Yunus bin Muhammad and Layth bin Sa'd; and the part about building a mosque is also narrated from Abu Bakr bin Abi Shaybah, Dawud bin Abdullah al-Ja'fari and Abd al-Aziz bin Muhammad; both of them narrated it from Yazid bin Abdullah bin al-Hadi, and he from al-Walid; so in its chain there is the addition of Yazid bin Abdullah bin al-Hadi.
And Abu Hatim Ibn Hibban (may Allah have mercy on him) narrated its first part through Imam Abu Ya'la al-Mawsili (may Allah have mercy on him) by the same route that we have mentioned.
I say: It is possible that Layth (may Allah have mercy on him) heard this hadith from both Yazid and al-Walid. And Allah knows best.
Imam Ibn Hibban (may Allah have mercy on him) also narrated it from al-Hasan bin Sufyan (may Allah have mercy on him), from Abu Bakr bin Abi Shaybah, and he from Yunus.