Retiring to a Mosque for Remembrance of Allah (I'tikaf)
حَدَّثَنَا إِسْمَاعِيلُ بْنُ عَبْدِ اللَّهِ، قَالَ حَدَّثَنِي ابْنُ وَهْبٍ، عَنْ يُونُسَ، أَنَّ نَافِعًا، أَخْبَرَهُ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَعْتَكِفُ الْعَشْرَ الأَوَاخِرَ مِنْ رَمَضَانَ.Narrated `Abdullah bin `Umar:Allah's Messenger (ﷺ) used to practice I`tikaf in the last ten days of the month of Ramadan
From Sahih al-Bukhari, whose reports the scholars accept as authentic.