But before this, two sermons are legislated.
As is established in the authentic hadiths:
كانت للنبي خطبتان يجلس بينهما
“The Messenger of Allah ﷺ used to deliver two sermons and would sit between the two.”
(Shafi’i (may Allah have mercy on him), Abu Hanifah (may Allah have mercy on him), Malik (may Allah have mercy on him)) The Friday sermon is obligatory.
(Hasan (may Allah have mercy on him), Dawud al-Zahiri (may Allah have mercy on him)) The Friday sermon is certainly only recommended.
(Ibn Hazm (may Allah have mercy on him)) The Friday sermon is not obligatory.
(Shawkani (may Allah have mercy on him)) holds the same view.
(Siddiq Hasan Khan (may Allah have mercy on him)) He gave preference to it not being obligatory.
(Qurtubi (may Allah have mercy on him)) The Friday sermon is obligatory (fard).
(Albani (may Allah have mercy on him)) The sermon is obligatory.
Those who hold that the sermon is not obligatory base their argument on the fact that obligation is not established by a bare action alone, while those who hold that it is obligatory have the following evidences:
➊ Allah the Exalted says:
فَاسْعَوْا إِلَى ذِكْرِ اللهِ
“Hasten to the remembrance of Allah.”
➋ The Friday sermon is a substitute for the two rak’ahs of Dhuhr, so that whoever leaves it has as though left the two rak’ahs of Dhuhr.
➌ Allah the Exalted says:
وَتَرَكُوكَ قَائِمًا
“(When people see some trade being conducted, they) leave you (ﷺ, while you are delivering the sermon) standing.”
The point is that in this verse those who abandon the sermon are condemned, and it is accepted that condemnation is only made for abandoning an obligation (not for abandoning a recommended act).
(Preponderant view) The evidences for obligation are stronger. والله اعلم