(19) بَابُ مَا كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُعْطِي الْمُؤَلَّفَةَ قُلُوبُهُمْ وَغَيْرَهُمْ مِنَ الْخُمُسِ وَنَحْوِهِ
Narrated Nafi`:
`Umar bin Al-Khattab said, "O Allah's Messenger (ﷺ)! I vowed to observe I`tikaf for one day during the Prelslamic period." The Prophet (ﷺ) ordered him to fulfill his vow. `Umar gained two lady captives from the war prisoners of Hunain and he left them in some of the houses at Mecca. When Allah's Messenger (ﷺ) freed the captives of Hunain without ransom, they came out walking in the streets. `Umar said (to his son), "O `Abdullah! See what is the matter." `Abdullah replied, "Allah's Messenger (ﷺ) has freed the captives without ransom." He said (to him), "Go and set free those two slave girls." (Nafi` added:) Allah's Apostle did not perform the `Umra from Al-Jarana, and if he had performed the `Umra, it would not have been hidden from `Abdullah.
Reference: Sahih al-Bukhari 3144
In-book reference: Book 57, Hadith 52
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 53, Hadith 372