In his earlier view (al-qawl al-qadim), Imam al-Shafi'i (may Allah have mercy on him) argued from the fact that an earthquake occurred during the caliphate of Sayyiduna Umar bin al-Khattab (may Allah be pleased with him), and he addressed the people in a sermon, but it is not mentioned that he also led a prayer.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الخسوف / Q6377