Muwatta Imam Malik Book of Hajj, Hadith 101
Yahya related to me from Malik from Ibn Shihab from Salim ibn Abdullah that Abdullah ibn Umar said, "Someone who is held back from going to the House by illness can only come out of ihram after he has done tawaf of the House and say between Safa and Marwa. If it is absolutely necessary for him to wear any ordinary clothes, or undergo medical treatment, he should do that and pay compensation for it."
حَدَّثَنِي يَحْيَى، عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ سَالِمِ بْنِ عَبْدِ اللَّهِ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، أَنَّهُ قَالَ الْمُحْصَرُ بِمَرَضٍ لاَ يَحِلُّ حَتَّى يَطُوفَ بِالْبَيْتِ وَيَسْعَى بَيْنَ الصَّفَا وَالْمَرْوَةِ فَإِذَا اضْطُرَّ إِلَى لُبْسِ شَىْءٍ مِنَ الثِّيَابِ الَّتِي لاَ بُدَّ لَهُ مِنْهَا أَوِ الدَّوَاءِ صَنَعَ ذَلِكَ وَافْتَدَى .