Umar bin Khattab reported,

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."

Azami 7119

Sahih

عن عمر بن الخطاب

أنه سأل رسول الله ﷺ وهو بالجعرانة بعد أن رجع من الطائف فقال: يا رسول الله إني نذرت في الجاهلية أن أعتكف يوما في المسجد الحرام. فكيف ترى؟ قال: اذهب فاعتكف يوما. قال: وكان رسول الله ﷺ قد أعطاه جارية من الخمس فلما أعتق رسول الله ﷺ سبايا الناس، سمع عمر بن الخطاب أصواتهم يقولون: أعتقنا رسول الله ﷺ فقال: ما هذا؟ فقالوا: أعتق رسول الله ﷺ سبايا الناس فقال عمر: يا عبد الله اذهب إلى تلك الجارية فخل سبيلها.

الأعظمي 7119صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Oaths and vows
Chapter
Vows
Section
Fulfilling a vow made during disbelief if it does not involve disobedience
Numbering
Jami al-Kamil 7119 (2nd edition)
Azami 7119