The Prophet (sallallahu ‘alayhi wasallam) issued a general pardon to all its inhabitants, who were not only pagans but also those that had fought him for the longest time, and regarding whom many of those verses of fighting like (Qur’aan Surah 9 verse 5) had been revealed.
Muhammad (sallallahu ‘alayhi wasallam) said “The Best (aspect) of Eemaan (faith) is patience and tolerance.” (Al-Silsilah al-Saheehah, no. 1495, 3/482)
Islam urges us to be tolerant and forgive others. This is indicated in both the Qur’aan and the Sunnah. Indeed, one of the features of Islam is that it is deen al-rahmah (the religion of mercy).
Tolerance is a basic principle of Islam. It is a religious moral duty. Islam teaches tolerance on all levels: individual, groups and states. Tolerance is the mechanism that upholds human rights and the rule of law.