O Messenger of Allah ﷺ, I vowed during the jahiliyyah to observe i’tikaf for one night in al-Masjid al-Haram. He said to him: “Fulfil your vow.” (Using translation from Aḥmad 255)
أَنَّهُ سَأَلَ رَسُولَ اللهِ ﷺ قَالَ يَا رَسُولَ اللهِ إِنِّي نَذَرْتُ أَنْ أَعْتَكِفَ لَيْلَةً فِي الْمَسْجِدِ الْحَرَامِ فِي الْجَاهِلِيَّةِ قَالَ «أَوْفِ بِنَذْرِكَ»