Sa'id bin Jubayr and Ikrimah narrate from Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) ordered Duba'ah bint al-Zubayr (may Allah be pleased with her) to make a stipulation in Hajj, and she did so by the order of the Messenger of Allah (peace and blessings be upon him).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 10109