It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him): "Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) surpassed the people in four things. First, his position regarding the captives of the Battle of Badr, in that he advised that they be killed, upon which Allah, the Mighty and Majestic, revealed this verse: 'Had it not been for a decree from Allah that had already gone before, a great punishment would have touched you for what you took.' Second, his counsel concerning the veil (hijab), in that he advised the wives of the Prophet (peace and blessings be upon him) to observe the veil, upon which Sayyidah Zaynab (may Allah be pleased with her) said to him: 'O Ibn al-Khattab, will you (give orders) over us, when the revelation descends in our houses?' Then Allah, the Mighty and Majestic, revealed this verse: 'And when you ask them for anything, ask them from behind a screen.' Third, the answered supplication of the Prophet (peace and blessings be upon him) in which he (peace and blessings be upon him) said: 'Allahumma ayyid al-Islama bi-Umar' (O Allah, strengthen and support Islam through Umar). And fourth, his sound opinion regarding Sayyiduna Abu Bakr al-Siddiq (may Allah be pleased with him), in that he was the first person to pledge allegiance to him."
Imam Abu Dawud al-Tayalisi recorded this hadith, and all its narrators are thiqat (trustworthy); Imam Ahmad bin Hanbal also recorded it, and the wording given is from his narration.