Allah ordered His Prophet to forgive the people their misbehavior (towards him).
Sahih al-Bukhari Book 65, Hadith 166