There is no single answer, because it depends on whether 'oldest' means the first scholar who taught, the first school to take a distinct shape, or the oldest of the schools that survive today. Among the four surviving Sunni schools the Hanafi school is the oldest, taking its name from Abu Hanifa (d. 150 AH).
- Jurisprudence (fiqh) began in the lifetime of the Prophet (saw) and continued with Companions such as Umar, Ali, Ibn Mas'ud, Ibn Abbas, A'isha and Zayd ibn Thabit (ra), whose opinions were later the raw material of every school.
- Regional schools existed before the personal schools, notably those of Madinah, Kufa, Basra, Makkah and Syria, and some of them died out, such as the schools of al-Awza'i, Sufyan al-Thawri and al-Layth ibn Sa'd.
- The Ibadi school traces itself to Jabir ibn Zayd (d. about 93 AH) and the Zaydi school to Zayd ibn Ali (d. 122 AH), both earlier than Abu Hanifa, though neither is one of the four Sunni schools.
- Born in 80 AH, Abu Hanifa was followed by Malik (d. 179), al-Shafi'i (d. 204) and Ahmad ibn Hanbal (d. 241), so the order of the Sunni four by death date is Hanafi, Maliki, Shafi'i, Hanbali.
Introduction
The question has a simple form and a careful answer. If it asks which of the four Sunni schools that Muslims follow today is oldest, the answer is the Hanafi school. If it asks which body of legal thought is the oldest of all, the answer has to go back before the schools, to the Companions and then to the regional centres of learning in the first century of Islam. The word 'school' (madhhab) itself describes a later stage, when the opinions of a leading jurist and his students were gathered, taught and defended as a method.
The Prophet (saw) is the source of all Islamic law, and he encouraged the study of the religion: 'If Allah wants good for someone, He gives him understanding of the religion' (Sahih al-Bukhari and Sahih Muslim). The Qur'an also commands that a group from every community should go out to learn and then warn their people (9:122). This is the beginning of fiqh as a discipline, and it is the proper starting point for the history.
The Companions and the first regional centres
After the Prophet (saw) the Companions gave rulings and spread across the new lands. Ibn al-Qayyim, in I'lam al-Muwaqqi'in, lists the Companions who gave fatwas in the Prophet's lifetime and after, and says that the rulings of Umar, Ali, Ibn Mas'ud, Ibn Abbas, Zayd ibn Thabit and A'isha (ra) are the largest part of what has come down. Their students, the Followers (tabi'un), formed circles in different cities.
In Madinah the leading figures were the seven jurists, among them Sa'id ibn al-Musayyib, 'Urwa ibn al-Zubayr, al-Qasim ibn Muhammad and Sulayman ibn Yasar. In Makkah Ata' ibn Abi Rabah and Mujahid taught from the knowledge of Ibn Abbas. In Kufa the circle of Abdullah ibn Mas'ud (ra) produced 'Alqama, al-Aswad and Ibrahim al-Nakha'i, and then Hammad ibn Abi Sulayman, who taught Abu Hanifa. Ibn Khaldun, in the Muqaddima, describes the two broad currents that resulted, the people of Hijaz who relied heavily on reports, and the people of Iraq who relied more on reasoning from principles, while Shah Waliullah al-Dihlawi, in Hujjat Allah al-Balighah and al-Insaf, shows that these currents were differences of emphasis and not of religion.
The surviving Sunni schools in order
Abu Hanifa al-Nu'man ibn Thabit was born in Kufa in 80 AH and died in 150 AH. He did not write a school manual himself, though the creed al-Fiqh al-Akbar is attributed to him, and his method was passed on by Abu Yusuf and Muhammad ibn al-Hasan al-Shaybani, whose works such as al-Asl and al-Jami' al-Saghir form the base of Hanafi law. It is therefore the oldest of the four in the date of its founder, and its student circle became a recognisable school in the second century.
Malik ibn Anas of Madinah died in 179 AH. His al-Muwatta' is among the earliest surviving works of law and hadith, and he built on the practice of the people of Madinah ('amal ahl al-Madina). Muhammad ibn Idris al-Shafi'i died in 204 AH, and his al-Risala is generally regarded as the first systematic work on the principles of jurisprudence (usul al-fiqh). Ahmad ibn Hanbal died in 241 AH. He is known above all as a hadith scholar, and his Musnad and the legal reports collected by his students became the basis of the Hanbali school.
A point of history needs care here. Abu Hanifa and Malik were contemporaries for many years, and Malik was born later but taught for a long time in Madinah. Some Maliki writers have therefore argued that the Madinan tradition is older than the Hanafi method, because it rests on the practice of the city of the Prophet (saw). This is a reasonable argument about origins, but the school bearing Malik's name took shape after him, so by the date of its eponymous founder the Hanafi school remains the earlier.
Schools that came before or alongside and are not among the four
Several contemporaries of Abu Hanifa and Malik led schools that attracted followers and then faded. Abd al-Rahman al-Awza'i (d. 157 AH) led the school of Syria and was followed in al-Andalus for a time, and Sufyan al-Thawri (d. 161 AH) in Kufa had his own circle. Al-Layth ibn Sa'd (d. 175 AH) in Egypt was, according to al-Shafi'i's reported remark, a better jurist than Malik, but his students did not preserve his school. Al-Tabari (d. 310 AH) founded the Jariri school, which also did not endure. Dawud al-Zahiri (d. 270 AH) founded the Zahiri school, later argued by Ibn Hazm in al-Muhalla, which rejected analogy (qiyas).
Outside the Sunni schools, the Ibadi tradition, found today mainly in Oman, honours Jabir ibn Zayd al-Azdi (d. about 93 AH) as its earliest imam and his student Abu Ubayda Muslim ibn Abi Karima as a transmitter, and its adherents therefore say theirs is the oldest. The Zaydi school goes back to Zayd ibn Ali (d. 122 AH), and the Ja'fari school of the Twelver Shi'a is named after Ja'far al-Sadiq (d. 148 AH). The dates support the claim of each that its founding figure lived before or alongside Abu Hanifa. Sunni scholars generally treat these as different traditions on matters of the imamate and sources of law, while accepting that all arose in the first two centuries and drew from the same early Companions and reports.
Why the question matters
Age is not proof of truth. Imam al-Shafi'i, Abu Hanifa and Malik all told their students to follow the evidence when it was clear, and a sentence widely reported from Abu Hanifa and found in Ibn 'Abidin's Hashiya says that when a hadith is sound, it is his school. The four schools lasted because their methods were learned and taught in a chain, and because later scholars, such as al-Nawawi, Ibn Qudama, al-Kasani and al-Dardir, compiled and tested the rulings with evidence.
Conclusion
The earliest legal thought in Islam is that of the Companions, and the earliest regional schools arose in Madinah and Kufa. Among the four surviving Sunni schools the Hanafi is the oldest, followed by the Maliki, the Shafi'i and the Hanbali. Other traditions such as the Ibadi and Zaydi claim founders of the same age or older, and lost Sunni schools such as those of al-Awza'i and al-Layth belong to the same century. The honest answer is therefore that the schools grew together from the same early roots, and that none was founded in isolation from the others.
References
Qur'an 9:122
Sahih al-Bukhari and Sahih Muslim, hadith on understanding of the religion (Book of Knowledge; Book of Zakat)
Ibn al-Qayyim, I'lam al-Muwaqqi'in 'an Rabb al-'Alamin; Ibn Khaldun, al-Muqaddima; Shah Waliullah al-Dihlawi, Hujjat Allah al-Balighah and al-Insaf fi Bayan Asbab al-Ikhtilaf
Malik ibn Anas, al-Muwatta'; al-Shafi'i, al-Risala; Muhammad ibn al-Hasan al-Shaybani, al-Asl; Ibn Hazm, al-Muhalla
Wael Hallaq, The Origins and Evolution of Islamic Law (Cambridge University Press, 2005); Muhammad Hashim Kamali, Principles of Islamic Jurisprudence