Jami` at-Tirmidhi, Book 2, Hadith 85 (Tirmidhi 233)

Samurah bin Jundub narrated:

"Allah's Messenger ordered us that when we were three, then one of us should stand forward."