Umm Habibah told him that the Prophet told her to leave Jam (Al-Muzdalifah) for Mina at the end of the night.

Sunan an-Nasa'i Book 24, Hadith 418