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)
أَنَّهُ قَالَ يَا رَسُولَ اللهِ نَذَرْتُ فِي الْجَاهِلِيَّةِ أَنْ أَعْتَكِفَ لَيْلَةً فِي الْمَسْجِدِ قَالَ وَفِّ بِنَذْرِكَ