Ibn Majah the Sunni scholar narrated from the Prophet of Islam (PBUH) who said:
On the Day of Judgement, prophets, then scholars and then martyrs respectively, intercede (Shafa’at/Shafa’ah) in the way of Allah (SWT) [1]. In another narration, Imam Sadeq (AS) said: On the Day of Judgement, Allah (SWT) will resurrect scholar (Aalim) and the devout one (Abid), and will tell the devout one: Go towards heaven alone, but will tell the scholar: Intercede on behalf of the people you have educated [2].
[1] Sonan Ibn Majah, Vol. 2, Page 1443, quoted from Manshoor Javeed, Vol. 8, Page 159.
[2] Beharul Anwaar, Vol. 2, Page 16.
Source: en.shafaqna.com