Although the Prophet (PBUH) is free from sins, it is permissible, as a token of Allah's honour and care for him, to pray for his greater salvation and blessings. It is also in a way a method of paying respects to him. The Hadith also shows the noble character of the Prophet (PBUH) who used to reciprocate compliments and good deeds.