Nabi (sallallahu alaihi wasallam) forgiving the people of Taif
Q: Our Nabi Muhammad (sallallahu alayhi wa sallam) made dua for the people of Taif regardless of their behaviour towards him. But he made bad dua for the king who tore his letter. This is how sometimes he showed mercy and sometimes gave la'nat. Why is it? And why is it higlighted only that he forgave the people of Taif and not the la'nat he gave to that king or the people who used to put garbage on his back during his prayer. Why didn't he forgive them? What should I learn from this?