Until Fajr of which day does the passage say to stay in Mina?

Book of Hajj: Sa’y between Safa and Marwa and the Day of Tarwiyah