Imam Malik, may Allah have mercy on him, was asked: What if a person forgets to perform the stoning (rami) at any of the jamarat on any of the days of Mina, until evening comes? He replied: Whenever he remembers, whether by night or by day, he should perform the stoning, just as with prayer—if someone forgets and then remembers by night or by day, he should perform it. However, if he has reached Mecca and then remembers, or if he remembers after leaving Mina, then a sacrifice (hady) becomes obligatory.
It is narrated from Nafi that the niece of Safiyyah bint Abi Ubaid experienced postnatal bleeding at Muzdalifah, so she and Safiyyah stayed there until they reached Mina, and the sun had set on the Day of Sacrifice. Then Abdullah bin Umar (may Allah be pleased with them both) instructed both of them to throw the pebbles when they arrived at Mina, and he did not impose any penalty upon them.
Hadith Referenceموطا امام مالك رواية يحييٰ / كتاب الحج / 922