Sunan An-Nasa'i - سنن النسائي
10. The Book of Leading the Prayer (Al-Imamah) - كتاب الإمامة
5) Chapter: When people are together and are all of the same status
It was narrated from Abu Sa'eed that the Prophet (ﷺ) said:
"when there are three people let one of them lead the prayer, and the one who is most entitled to lead the prayer is the one who has
most knowledge of the Qur'an."
5) باب اجْتِمَاعِ الْقَوْمِ فِي مَوْضِعٍ هُمْ فِيهِ سَوَاءٌ
أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ سَعِيدٍ، عَنْ يَحْيَى، عَنْ هِشَامٍ، قَالَ حَدَّثَنَا قَتَادَةُ، عَنْ أَبِي نَضْرَةَ، عَنْ أَبِي سَعِيدٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ . " إِذَا كَانُوا ثَلاَثَةً فَلْيَؤُمَّهُمْ أَحَدُهُمْ وَأَحَقُّهُمْ بِالإِمَامَةِ أَقْرَؤُهُمْ "