It wasnarrated that Anas bin Malik said:
"The Messenger of Allah(ﷺ)said: 'The person observing I'tikaf may attend funerals andvisitthe sick.'" (ID)
English reference (ID): Vol. 1, Book 7, Hadith 1777 (ID)
Arabic reference (ID): Book 7, Hadith 1849 (ID)