The Khalifah of the Prophet (ﷺ) will be the person who has acquired (knowledge of) all the three departments of the Deen that we have mentioned. He must have learned the Quran, the Sunnah, and endeavored in the discipline of Salook.
[Hazrat Shah Waliullah, via Dalail-us-Salook]