The common claim that al-Hajjaj ibn Yusuf added vowel signs to the Qur'an is partly right and partly mistaken: the early tradition credits Abu al-Aswad al-Du'ali with the first vowel marks and Nasr ibn Asim and Yahya ibn Ya'mar, at al-Hajjaj's order, with the dots that distinguish similar letters.
- The Qur'an was preserved first by memory and oral transmission, and the text of the Uthmani copies was written in a plain script, so these signs were added only to help non-Arabs and those unsure of recitation.
- Al-Khalil ibn Ahmad later devised the shapes of the vowel marks that are in use today.
- Scholars differed at first on whether to add the signs, and then agreed that they are permitted and good, as al-Nawawi and Imam Malik allowed.
- Reports that al-Hajjaj changed words of the Qur'an are rejected by scholars, since the text was fixed by the mass transmission of the community.
Introduction
The Qur'an in the form that Muslims read today has dots to distinguish letters such as ba, ta and tha, and marks for the short vowels. These aids were not part of the earliest copies, and questions about who added them, and when, have been discussed since the early centuries. Al-Hajjaj ibn Yusuf al-Thaqafi, the Umayyad governor of Iraq who died in 95 AH, is often named in the story.
This answer sets out what the sources say about the preservation of the Qur'an before these signs, the stages in which they were added, the role attributed to al-Hajjaj, and the scholars' views on the reports that he altered the text.
The Qur'an before the signs
The Qur'an was revealed to be recited and memorised. Allah says: "Indeed, it is We who sent down the Reminder, and indeed, We will be its guardian" (15:9). The Companions memorised it and recited it to one another, and Abu Bakr (ra) had it gathered in a single set of sheets, then Uthman (ra) ordered copies to be made in the dialect of Quraysh and sent to the main cities, as recorded in Sahih al-Bukhari, in the Book of the Virtues of the Qur'an, in the hadith of Anas ibn Malik (ra) about Hudhayfa's concern at the differing recitations. It is reported that reciters were sent with the copies.
The script of those copies was a simple Arabic script that lacked the later dots and short vowel signs. The Arabs of that time knew their language by nature, and the memory of the reciters fixed the exact reading. The absence of signs did not mean ambiguity to those who had learned by hearing.
The stages of adding the signs
As Islam spread among non-Arabs and the Arabs' speech was affected by contact, mistakes in reading appeared (lahn). The sources, including Abu Amr al-Dani in al-Muhkam fi Naqt al-Masahif, al-Suyuti in al-Itqan fi 'Ulum al-Qur'an and al-Zarqani in Manahil al-'Irfan, describe two kinds of sign.
The first is the vowel marking (naqt al-i'rab). The tradition says that Abu al-Aswad al-Du'ali, a pupil of Ali (ra) and a founder of Arabic grammar, put dots in different positions and colours for the vowels, at the request of the governor Ziyad or, in another report, at the instruction of Ali (ra). The reports differ on who asked him, which is a reason for caution about the details. These were coloured dots, not the signs of the present day.
The second is the dotting of letters (naqt al-i'jam), which distinguishes letters of the same shape. Many sources report that this was done in the time of al-Hajjaj by two pupils of Abu al-Aswad, Nasr ibn Asim al-Laythi and Yahya ibn Ya'mar, at the order of the governor. Other scholars say that dotting was used earlier in various places, and some early documents with dotted letters have been identified by specialists, so the tradition may describe a spread and standardisation and not an invention.
Finally, al-Khalil ibn Ahmad al-Farahidi, the author of the first Arabic dictionary, devised the signs for the short vowels in their present form, small letters above and below the line, so as to avoid confusion with the dots that mark letters. These are the forms found in printed copies.
The role of al-Hajjaj
Al-Hajjaj is remembered in Muslim memory mainly as a harsh governor, but the sources credit him with an interest in the Qur'an and with encouraging the work of dotting and perhaps of dividing the text into sections for recitation. The details of the latter are less certain and should be stated with care.
There are also reports, preserved in Kitab al-Masahif of Ibn Abi Dawud and elsewhere, that al-Hajjaj changed a number of words in the Uthmani copies, with figures given as eleven or so. Scholars have treated these reports with strong reserve. Some are weak in chain, and many concern variants among recognised readings which were already present in the mass-transmitted recitation, so that the reports do not show any alteration of the text. The Qur'an was by then in the memories of tens of thousands of people in all regions, and any attempt to change it would have been seen and resisted. Mustafa al-A'zami, in The History of the Qur'anic Text, and other modern scholars have examined these claims and rejected them.
Whether adding the signs is permitted
Some early scholars disliked adding anything to the copies, in order to keep the text exactly as it was written, and a saying is reported in Ibn Abi Dawud's work that they wished to keep the Qur'an unmixed. Later, the community accepted the signs. Abu Amr al-Dani reports that Imam Malik allowed dots in the copies used for teaching children and disliked them in the mother copies, and the later Maliki scholars allowed them generally. Al-Nawawi, in al-Tibyan fi Adab Hamalat al-Qur'an, writes that dotting and vowelling are recommended since they protect against error. The aim is the preservation of the recitation, which is why the signs were accepted.
It should also be said that the signs are not a source of the Qur'an. The authority for the reading remains the chain of recitation, in which each reciter has learned from a teacher back to the Prophet (saw), and the science of the ten recognised readings (qira'at), systematised by Ibn Mujahid and later Ibn al-Jazari in al-Nashr fi al-Qira'at al-'Ashr, rests on that chain and not on the marks in a printed copy. This is why a student of recitation still learns face to face with a teacher who holds a licence (ijaza), and why the marks are treated as a servant of the recitation. For the asker's premise, the fair statement is therefore this: al-Hajjaj is connected in the sources with the work of dotting the letters, he did not invent the vowel signs, and neither work changed the words that the community recited.
Conclusion
The Qur'an was preserved by oral and written transmission before any marks were added. The dots and vowel signs came later in stages, with Abu al-Aswad, Nasr ibn Asim, Yahya ibn Ya'mar and then al-Khalil as the names given by the tradition, and with al-Hajjaj as the governor under whom the dotting is reported. The signs aid the reader and do not change the words, and the claim that al-Hajjaj altered the Qur'an has been examined and rejected by scholars.
References
The Qur'an: 15:9
Sahih al-Bukhari: Book of the Virtues of the Qur'an, the hadith of Anas ibn Malik (ra) on the copies of Uthman (ra)
Abu Amr al-Dani, al-Muhkam fi Naqt al-Masahif
Al-Suyuti, al-Itqan fi 'Ulum al-Qur'an
Al-Zarqani, Manahil al-'Irfan fi 'Ulum al-Qur'an
Ibn Abi Dawud, Kitab al-Masahif
Al-Nawawi, al-Tibyan fi Adab Hamalat al-Qur'an
Mustafa al-A'zami, The History of the Qur'anic Text