Dubaa bint Zubayr bin Abdul-Muttalib came to the Prophet ﷺ and said, "Messenger of Allah, I intend to perform Hajj. What should I say?"He replied, "Say, 'Here I am, O Allah, here I am, and the place where I come out of ihram will be wherever You hold me back.' For indeed, whatever condition you make is binding upon your Lord."
أخبرنا إبراهيم بن يعقوب قال حدثنا أبو النعمان قال حدثنا ثابت بن يزيد الأحول قال حدثنا هلال بن خباب قال سألت سعيد بن جبير عن الرجل يحج يشترط قال الشرط بين الناس فحدثته حديثه يعني عكرمة فحدثني
أن ضباعة بنت الزبير بن عبد المطلب أتت النبي ﷺ فقالت يا رسول الله إني أريد الحج فكيف أقول قال قولي لبيك اللهم لبيك ومحلي من الأرض حيث تحبسني فإن لك على ربك ما استثنيت
Its isnad is hasan. Abu Dawud narrated it in the chapters on Hajj, in the chapter on making a stipulation in Hajj, no. 1776, and Tirmidhi narrated it in the chapters on Hajj, in the chapter on what has been said about making a stipulation in Hajj, no. 941, from the hadith of Hilal, with the same wording. Tirmidhi said, hasan sahih. It is also found in Kubra, no. 3749. See Nayl Maqsud, no. 1443, regarding the status of Hilal bin Khabab.