It is narrated from Hazrat Aisha (may Allah be pleased with her) that when the Prophet (peace and blessings be upon him) observed i'tikaf, he would only leave the mosque due to human necessity.
Hadith Referenceمسند احمد / مسند النساء / 26408
Hadith Gradingحکم دارالسلام:حديث صحيح، وهذا إسناد ضعيف لاجل عامر بن صالح، خ: 2029، م: 297