NASAI-KUBRA 3330: from Ubay b. Kaʿb —
The Prophet ﷺ used to observe i'tikaf during the last ten days of Ramadan. One year he did not observe i'tikaf. When the next year came, he observed i'tikaf for twenty nights (i.e. days). (Using translation from Abū Dāʾūd 2463)

الكبرى للنسائي ٣٣٣٠: عن ابي بن كعب —
أَنَّ رَسُولَ اللهِ ﷺ كَانَ «يَعْتَكِفُ الْعَشْرَ الْأَوَاخِرَ مِنْ رَمَضَانَ فَسَافَرَ عَامًا فَلَمْ يَعْتَكِفْ فَلَمَّا كَانَ الْعَامُ الْمُقْبِلُ اعْتَكَفَ عِشْرِينَ»


No Grade (N/A)
Nasāʾī's Kubrá > Retiring to a Mosque > § [Machine] I'tikaf in the middle ten days of the month
hadithunlocked.com