Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: The Prophet (peace and blessings be upon him) sent me with the weak ones from Muzdalifah at night, so we prayed and did the stoning (rami) before the people came to us.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9712