Sunan Ibn Majah, Volume 5, Book 37, Hadith 4313 (DarusSalam)

It was narrated from ‘Uthman bin ‘Affan that the Messenger of Allah said: “Three will intercede on the Day of Resurrection: The Prophets, then the scholars, then the martyrs.”

حَدَّثَنَا سَعِيدُ بْنُ مَرْوَانَ، حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ، حَدَّثَنَا عَنْبَسَةُ بْنُ عَبْدِ الرَّحْمَنِ، عَنْ عِلاَقِ بْنِ أَبِي مُسْلِمٍ، عَنْ أَبَانَ بْنِ عُثْمَانَ، عَنْ عُثْمَانَ بْنِ عَفَّانَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ يَشْفَعُ يَوْمَ الْقِيَامَةِ ثَلاَثَةٌ الأَنْبِيَاءُ ثُمَّ الْعُلَمَاءُ ثُمَّ الشُّهَدَاءُ ‏" ‏ ‏.‏

sunnah.com