Ibn ʿAbbas (Allah be pleased with him) reported that Dubaʿa intended to perform Hajj, and the Messenger of Allah ﷺ commanded her (to enter into the state of Ihram) with condition. She did it in compliance with the command of Allah's Apostle ﷺ. (Using translation from Muslim 1208b)
أَنَّ ضُبَاعَةَ أَرَادَتِ الْحَجَّ فَأَمَرَهَا رَسُولُ اللهِ ﷺ «أَنْ تَشْتَرِطَ» فَفَعَلَتْ عَنْ أَمْرِ رَسُولِ اللهِ ﷺ