Hazrat Sha'bi (may Allah have mercy on him) says that if the imprisonment is from the woman's side, then for her husband there is neither obligation of maintenance nor lodging.
Hadith Referenceسنن سعید بن منصور / كتاب الطلاق / 2576
Hadith Takhrij«أخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 1399، 1400، وابن أبى شيبة فى «مصنفه» برقم: 19365، 19368»