It is narrated from Urwah (may Allah have mercy on him) that the Prophet ﷺ passed by Dubaa’ah bint Zubair and said: “Do you not intend to perform Hajj?” She replied, “I am doubtful because of illness.” The Prophet ﷺ said to her: “Enter into the state of Ihram for Hajj and stipulate the condition that I will become free from Ihram wherever I am prevented (due to illness).”
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 812
Hadith Takhrijحديث صحيح فقد صح موصولا اخرجه البخاري، النكاح، بأب الأكفاء في الدين (5089) ومسلم، الحج، باب جواز اشتراط المحرم التحلل بعذر المرض ونحوه (1208)۔