Ayesha reported,

The Messenger of Allah ﷺ visited Dubaa bint Zubayr and said to her, "Perhaps you wish to perform the Hajj?"She replied, "By Allah, I find myself unwell."He said to her, "Perform the Hajj, but make a condition. Say, 'O Allah, my place of release is wherever You hold me back.'"She was the wife of Miqdad bin Aswad.

Azami 4823

Sahih

عن عائشة، قالت

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

الأعظمي 4823صحيح
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 4823 (2nd edition)
Azami 4823