Rule 424...
Rule 424: If it becomes obligatory on a person to spend the night in Mina, it is not necessary for him to spend the whole of the following day there also; he need stay just long enough to throw the pebbles at the three Jamaraat. Nor is it obligatory to spend the entire night there; it is enough if he remains there from the beginning of the night to a little after midnight or from a little before midnight till dawn.
It is preferable that he should spend the first half of the night there but must not enter Makkah before sunrise.
Rule 425: There are some exceptions to the rule requiring stay in Mina: (1) A person who finds it difficult to stay or one who fears danger to life or property by staying in Mina; (2) those spending the whole night in worship in Makkah, except for the time needed to meet necessities like food, drink, etc; (3) those who, having performed the Tawaaf, remain in prayers and then depart from Makkah crossing beyond the city, can remain on the route without the need to have entered Mina and are permitted to delay their return to Mina to throw the pebbles and (4) people who bring water for the pilgrims.
Rule 426: One who omits to spend the nights in Mina must sacrifice a sheep for every night as a penalty except for groups (2), (3) and (4) above. As a matter of caution, even those who omit to do so by oversight or out of ignorance of the rule or are excused from spending the nights there must sacrifice a sheep. Rule 427: A person who departs from Mina and then re-enters at night on the eve of the thirteenth on some business does not need to spend the night there.
THROWING PEBBLES AT JAMARAAT Thirteenth Obligation: The thirteenth obligation in Hajj is throwing pebbles at the three jamaraat, the First (Oola), Middle (Wusta) and Last (Uqbah), on the eleventh and twelfth and, as a matter of caution, also on the thirteenth if its eve was spent in Mina. It must be done personally and appointment of an agent is not permitted except for a good reason.
Rule 428: It is obligatory to commence the throwing of pebbles at the First Jamrah (Oola), then the Middle (Wusta) and finally the Last (Uqbah). If the sequence is not followed, even if by oversight or ignorance of the rule, the procedure must be repeated to achieve the proper sequence. However, if one forgets or misses a Jamrah and throws four pebbles at the subsequent one before realising, he may complete the seven and there is no need to repeat there.