Literally: I'tikaf is to stay, to be imprisoned, to accompany or to be devoted to something, be it good or bad, for Allah (G. B. H) says: {What are these images to which you are (so assiduously) devoted} [Al-Anbia': 52].
Legally: The residence of a particular person in a mosque in a particular manner.