Abdullah bin Abbas reported,

Dubaa bint Zubayr bin Abdul-Muttalib رضي الله عنها came to the Messenger of Allah ﷺ and said, "I am a heavy woman, and I wish to perform the Hajj. What do you advise me?"He said, "Enter into ihram for Hajj, and stipulate that my place of release is wherever You detain me."She said, "And so I was able to complete it."

Azami 4824

Sahih

عن ابن عباس

أن ضباعة بنت الزبير بن عبد المطلب رضي الله عنها أتت رسول الله ﷺ فقالت: إني امرأة ثقيلة وإني أريد الحج فما تأمرني؟ قال: أهلي بالحج واشترطي أن محلي حيث تحبسني. قال: فأدركت.

الأعظمي 4824صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
What is permissible and what is forbidden for one in a state of ihram
Section
Permissibility of the pilgrim in ihram stipulating to his Lord عز وجل to exit ihram due to illness or similar excuses
Numbering
Jami al-Kamil 4824 (2nd edition)
Azami 4824