مناسك حج - مكارم شيرازى، ناصر - الصفحة ١٧٨ - Rulings of Wuquf in Arafat and Mash'ar
Article ٢٨٢- Whenever sequence has not been observed in Ramy al- Jamarat, the pilgrim should return and perform it in the way that sequence is observed, but if he/ she has hurled four pebbles or more to each Jamarah, he/ she returns and performs the rest sequentially, and if he/ she has not hurled four pebbles, then he/ she should return and perform from the beginning and throw seven pebbles, and if he/ she has missed three pebbles or less from one of Jamarat, he/ she should complete only that Jamarah and there is nothing else obligatory for him/ her in this matter.
Article ٢٨٣- If the pilgrim has not observed the sequence deliberately, it is obligatory precaution to return and perform that from the beginning and there is no difference between four pebbles or less.