All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
The most correct procedure is for the pilgrim to go from 'Arafah then to Muzdalifah, and not to Mina and then to Muzdalifah. Anyway, if you went to Mina and spent the night there, you are not required to offer a sacrifice unless you arrived to Muzdalifah after Fajr because you neglected one of the obligations of Hajj, which is spending the night in Muzdalifah.
Allaah knows best.