The battle that served as a pointer to the compilation of the Glorious Qur'an was fought at

A.

Khandaq

B.

Uhud

C.

Tabūk

D.

Yamāmah

Correct answer is D

During the time of Caliph Abu Bakr, when 70 people who knew the Quran by heart (qari), were killed in the Battle of Yamama, Umar ibn al-Khattab became concerned and appealed to Abu Bakr in order to compile the Quran into a book.
Abu Bakr formed a delegation under the leadership of Zaid ibn Thabit, one of the leading scribes.
This delegation of 12 people, including famous figures such as Uthman ibn Affan, Ali ibn Abi Talib, Talha ibn Ubaydullah, Abdullah ibn Masood, Ubayy ibn Kab, Khalid ibn al-Walid, Hudhaifah and Saleem, came together in Umar's house and collected all the materials on which verses from the Quran were written.