Could you please let me know to which school of thought did Imam Al-Bukhari and the other five famous scholars of Hadith, as well as Imam Ibn Taimiyah and Imam Ibn Hajar belong?

The six scholars who made the six most authentic collections of Hadith lived early in the 3rd century. These were too close to the period when the four imams who established the four schools of thought lived. In fact, when Al-Bukhari completed his collection known as the Sahih, he showed it to Ahmad ibn Hanbal, because the latter was the top authority on Hadith, particularly its reporters. The schools of thought had not yet been truly established as such. Each imam had his own methodology and students. A school of thought comes into being when the students of an imam become top scholars in their own right, following his methodology. They would pass on their knowledge to another generation of scholars who will continue that line. Over several generations a school of thought becomes well established.

In the early period of Islam, there were many scholars who rank at the same level as the founders of the schools of thought, but these did not establish their own schools because their students were not as numerous, or as highly recognized as those of Abu Hanifah, Malik, Al-Shaf’ie and Ahmad. Hence, their lines were not continued. The six scholars of Hadith, Al-Bukhari, Muslim, Abu Dawood, Al-Tirmithi, An-Nasa’ie and Ibn Majah studied under several prominent scholars of their time. They were able to distinguish evidence supporting each view. They followed what they felt to be close to the truth, not any particular school of thought.

Imam ibn Taimiyah is recognized as an imam who could have had his own school of thought. But he did not seek such a position, and he continued to consider himself belonging to the Hanbali school of thought. Imam ibn Hajar belonged to the Shaf’ie school of thought.