Sahih al-Bukhari 6697
Book 83: Oaths and Vows · Narrated by Ibn `Umar
Arabic
حَدَّثَنَا مُحَمَّدُ بْنُ مُقَاتِلٍ أَبُو الْحَسَنِ، أَخْبَرَنَا عَبْدُ اللَّهِ، أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ عُمَرَ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ عُمَرَ، قَالَ يَا رَسُولَ اللَّهِ إِنِّي نَذَرْتُ فِي الْجَاهِلِيَّةِ أَنْ أَعْتَكِفَ لَيْلَةً فِي الْمَسْجِدِ الْحَرَامِ. قَالَ " أَوْفِ بِنَذْرِكَ ".
English translation
Narrated Ibn `Umar:`Umar said "O Allah's Messenger (ﷺ)! I vowed to perform I`tikaf for one night in Al-Masjid-al-Haram, during the Pre-Islamic Period of ignorance (before embracing Islam). "The Prophet (ﷺ) said, "Fulfill your vow." Ibn `Umar said to the lady, "Pray on her behalf." Ibn `Abbas said the same
Reference: Sahih al-Bukhari 6697, Book of Oaths and Vows. English translation by Dr. Muhammad Muhsin Khan.