[Machine] The Prophet ﷺ used to observe i'tikaf during the last ten days of Ramadan when he was staying in one place, and when he travelled, he would observe i'tikaf for twenty days in the coming year. Abdullah bin Ahmad said, "My father narrated to me that he heard this hadith from Ibn Abi Adiy from Humaid from Anas."
كَانَ النَّبِيُّ ﷺ إِذَا كَانَ مُقِيمًا اعْتَكَفَ الْعَشْرَ الْأَوَاخِرَ مِنْ رَمَضَانَ وَإِذَا سَافَرَ اعْتَكَفَ مِنَ الْعَامِ الْمُقْبِلِ عِشْرِينَ قَالَ عَبْدُ اللهِ بْنُ أَحْمَدَ قَالَ أَبِي لَمْ أَسْمَعْ هَذَا الْحَدِيثَ إِلَّا مِنْ ابْنِأَبِي عَدِيٍّ عَنْ حُمَيْدٍ عَنْ أَنَسٍ