When we did the pilgrimage, we did not manage to reach Muzdalifah until after sunrise because of the heavy traffic. We could not walk because some in our party were sick. We halted for a while and proceeded to Mina. We did not manage to stay in Mina for the three nights, but we stayed two nights just before the Mina boundaries.

The majority of scholars consider the stopping at Muzdalifah after leaving Arafat to be a duty of pilgrimage. What is necessary to do there is to offer the two prayers of Maghrib and Isha and to stay until one has prayed Fajr? One then proceeds to Mina before sunrise. However, women and those who are weak or elderly may proceed from Muzdalifah after midnight. Since this is a duty, you should have tried harder to make sure of doing it.

Since you did not do it, compensation is necessary which is the slaughter of a sheep for every one in your party. The sacrifice must be done in the Haram area and the meat distributed to the poor there. You may not partake of its meat.

You may do the sacrifice now, through a friend or someone who is going to Makkah to do it on your behalf. Even the women in your party should offer this sacrifice, because they did not do this duty at all.

They are unlike those who stayed for a while and offered the two prayers in Muzdalifah before proceeding to Mina. They have not reached there at all.

You need not compensate for not staying those two nights in Mina. According to the Hanbali school of thought and other scholars, staying in Mina on these nights is a Sunnah, not a duty. Hence, no compensation is necessary. Staying in Mina on the 8th of Thul Hajjah, before pilgrimage, is Sunnah according to all scholars. There is no disagreement among scholars on this point. So there is no compensation due on that count either. In other words, you have to compensate only for missing out on the duty of staying the night in Muzdalifah and praying there.