Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:10093his father

[Machine] "He said that the pilgrim must not remove his ihram until he performs tawaf (circumambulation) around the Kaaba and between Safa and Marwa. However, if he is compelled to wear some necessary clothing, he may do so and offer a ransom. Al-Shafi'i said in his book Al-Manasik that Al-Muhsar refers to someone who is prevented from completing the rituals due to illness. And Allah knows best."  

البيهقي:١٠٠٩٣وَبِهَذَا الْإِسْنَادِ عَنْ أَبِيهِ

أَنَّهُ قَالَ الْمُحْصَرُ لَا يَحِلُّ حَتَّى يَطُوفَ بِالْبَيْتِ وَبَيْنَ الصَّفَا وَالْمَرْوَةِ فَإِنِ اضْطُرَّ إِلَى شَيْءٍ مِنْ لُبْسِ الثِّيَابِ الَّتِي لَا بُدَّ لَهُ مِنْهَا صَنَعَ ذَلِكَ وَافْتَدَى قَالَ الشَّافِعِيُّ فِي كِتَابِ الْمَنَاسِكِ هُوَ الْمُحْصَرُ بِالْمَرَضِ وَاللهُ أَعْلَمُ  


See similar narrations below:

Collected by Mālik
malik:20-103Yaḥyá > Mālik > Ibn Shihāb > Sālim b. ʿAbdullāh > ʿAbdullāh b. ʿUmar

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."  

مالك:٢٠-١٠٣حَدَّثَنِي يَحْيَى عَنْ مَالِكٍ عَنِ ابْنِ شِهَابٍ عَنْ سَالِمِ بْنِ عَبْدِ اللَّهِ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ

أَنَّهُ قَالَ الْمُحْصَرُ بِمَرَضٍ لاَ يَحِلُّ حَتَّى يَطُوفَ بِالْبَيْتِ وَيَسْعَى بَيْنَ الصَّفَا وَالْمَرْوَةِ فَإِذَا اضْطُرَّ إِلَى لُبْسِ شَىْءٍ مِنَ الثِّيَابِ الَّتِي لاَ بُدَّ لَهُ مِنْهَا أَوِ الدَّوَاءِ صَنَعَ ذَلِكَ وَافْتَدَى