The Messenger of Allah (ﷺ) said two rak'ahs at Mina, and Abu Bakr after him, and 'Umar…

Sahih Muslim Book 6 Hadith 23

Sahih Muslim #694 c

The Book of Prayer - Travellers 6:23

Ibn 'Umar reported:

The Messenger of Allah (ﷺ) said two rak'ahs at Mina, and Abu Bakr after him, and 'Umar after Abu Bakr, and 'Uthman at the beginning of his caliphate; then 'Uthman observed four rak'ahs, and when Ibn 'Umar prayed with the Imam, he said four rak'ahs, but when he observed prayer alone, he said two rak'ahs.

Chapter: Shortening the prayer in Mina

Grade: Sahih