Translation
(14) Fasting (Kitab Al-Siyam)
كتاب الصوم
(846) Chapter: A Person Observing I'tikaf Visiting The Sick
(81) باب الْمُعْتَكِفِ يَعُودُ الْمَرِيضَ
Sunan Abi Dawud 2474 

Narrated Abdullah ibn Umar:

Umar (may Allah be pleased with him) took a vow in the pre-Islamic days to spend a night or a day in devotion near the Ka'bah (in the sacred mosque). He asked the Prophet (ﷺ) about it. He said: Observe i'tikaf (i.e. spend a night or a day near the Ka'bah) and fast.

حَدَّثَنَا أَحْمَدُ بْنُ إِبْرَاهِيمَ، حَدَّثَنَا أَبُو دَاوُدَ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ بُدَيْلٍ، عَنْ عَمْرِو بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ، أَنَّ عُمَرَ، - رضى الله عنه - جَعَلَ عَلَيْهِ أَنْ يَعْتَكِفَ فِي الْجَاهِلِيَّةِ لَيْلَةً أَوْ يَوْمًا عِنْدَ الْكَعْبَةِ فَسَأَلَ النَّبِيَّ صلى الله عليه وسلم فَقَالَ ‏ "‏ اعْتَكِفْ وَصُمْ ‏"‏ ‏.‏
 صحيح دون قوله أو يوما وقوله وصم ق  (الألباني)حكم :
Reference : Sunan Abi Dawud 2474
In-book reference : Book 14, Hadith 162
English translation : Book 13, Hadith 2468