There are primary and secondary sources of history. The Quran, which is very much history-oriented, can be categorized as neither. Rather, it is the ultimate historical source.