He asked the Messenger of Allah ﷺ while at Jiranah, after he had returned from Taif, "Messenger of Allah, I vowed during the days of ignorance that I would observe seclusion for one day in the Sacred Mosque. What do you say about this?"The Messenger of Allah ﷺ replied, "Go and observe seclusion for a day."The Messenger of Allah ﷺ had given him a slave girl from the spoils of war. When the Messenger of Allah ﷺ freed the captives of the people, Umar bin Khattab heard their voices saying, "The Messenger of Allah ﷺ has freed us."Umar asked, "What is this?"They said, "The Messenger of Allah ﷺ has freed the captives of the people."So Umar said, "Abdullah, go to that slave girl and set her free."
أنه سأل رسول الله ﷺ وهو بالجعرانة بعد أن رجع من الطائف فقال: يا رسول الله إني نذرت في الجاهلية أن أعتكف يوما في المسجد الحرام. فكيف ترى؟ قال: اذهب فاعتكف يوما. قال: وكان رسول الله ﷺ قد أعطاه جارية من الخمس فلما أعتق رسول الله ﷺ سبايا الناس، سمع عمر بن الخطاب أصواتهم يقولون: أعتقنا رسول الله ﷺ فقال: ما هذا؟ فقالوا: أعتق رسول الله ﷺ سبايا الناس فقال عمر: يا عبد الله اذهب إلى تلك الجارية فخل سبيلها.
Bukhari related it in the chapter on the obligation of the one-fifth share (3144), and Muslim in the chapter on oaths and vows (28:1656), both from the hadith of Ayub, who was told by Nafi, who was told that Umar bin Khattab asked, then he narrated the hadith, the wording given being Muslim's. Bukhari's wording is similar, except that it has, "Umar got two slave girls from the captives of Hunayn."There is no contradiction between the two preceding hadiths, for the first mentions "seclusion of a night" while the second mentions "seclusion of a day." Ibn Hibban said in his Sahih (10/226-227), "It seems that what is meant by 'a day' includes its night, and what is meant by 'a night' includes its day, so that there is no contradiction between the two reports," meaning between day and night.