It is recommended to send the weak among women and others ahead from Al-Muzdalifah to Mina at the end of the night, before it gets crowded, but it is recommended for others to stay there until they have prayed Subh in Al-Muzdalifah
وَحَدَّثَنِيهِ عَلِيُّ بْنُ خَشْرَمٍ، أَخْبَرَنَا عِيسَى بْنُ يُونُسَ، عَنِ ابْنِ جُرَيْجٍ، بِهَذَا الإِسْنَادِ وَفِي رِوَايَتِهِ قَالَتْ لاَ أَىْ بُنَىَّ إِنَّ نَبِيَّ اللَّهِ صلى الله عليه وسلم أَذِنَ لِظُعُنِهِ .
This hadith has been narrated by Ibn Juraij with the same chain of transmitters, and In his narration (the words are):" She (Asma') said: My son, Allah's Messenger (ﷺ) granted permission to women."