The Messenger of Allah ﷺ used to spend the last ten days of Ramadan in spiritual retreat at the mosque.Nafi said, "Abdullah showed me the spot in the mosque where the Messenger of Allah ﷺ used to perform his retreat."
كان رسول الله ﷺ يعتكف العشر الأواخر من رمضان. قال نافع: وقد أراني عبد الله رضي الله عنه المكان الذي كان يعتكف فيه رسول الله ﷺ من المسجد.
Bukhari narrated it in itikaf (2025), and Muslim in itikaf (1171:2), through the route of Yunus bin Yazid Ayli, that Nafi told him, from Abdullah bin Umar, and he mentioned it. Their wording is the same, except for Nafi's statement, "and he showed me..." and so on, which Muslim added, and likewise Abu Dawud (2465) and Ibn Majah (1772) added it.