Asma said to me while she was at the house in Muzdalifa, "Has the moon set?"I said, "No."So she prayed for a while, then she said, "My son, has the moon set?"I said, "Yes."She said, "Set out with me." So we set off until she threw the pebbles at the Jamrah, then she prayed in her lodging.I said to her, "Dear lady, we have set out in deep darkness!"She said, "Not at all, my son. The Prophet ﷺ gave permission to the women to do so."
قالت لي أسماء وهي عند دار المزدلفة… هل غاب القمر؟ قلت: لا، فصلت ساعة، ثم قالت: يا بني هل غاب القمر؟ قلت: نعم. قالت: ارحل بي. فاز تحلنا حتى رمت الجمرة، ثم صلت في منزلها. فقلت لها: أي هناه، لقد غلسنا! قالت: كلا أي بني إن النبي ﷺ أذن للظعن.
Bukhari related it in the Hajj chapter (1679), and Muslim in the Hajj chapter (1291), both through Yahya Qattan, from Ibn Jurayj, who said, "Abdullah, the freed slave of Asma, narrated to me." The wording given is that of Muslim, and Bukhari's wording is similar.