Aren't blasphemy laws in Pakistan unislamic, as they violate the freeedom of religion that both Islam and the Prophet promised non muslims?

Though I don't agree with them, the blasphemy laws are based on the ayat and hadiths like the following (not an exhaustive list; just one example):

Quran

Indeed, those who abuse Allah and His Messenger - Allah has cursed them in this world and the Hereafter and prepared for them a humiliating punishment. Quran 33:57

Hadith

The Assassination of Ka'b bin Ashraf (a Jew who spoke out against Muhammad)

Narrated Jabir:

The Prophet said, "Who is ready to kill Ka'b bin Ashraf (i.e. a Jew)." Muhammad bin Maslama replied, "Do you like me to kill him?" The Prophet replied in the affirmative. Muhammad bin Maslama said, "Then allow me to say what I like." The Prophet replied, "I do (i.e. allow you)." Sahih Bukhari Volume 4, Book 52, Number 271

Details of the assassination (I have shortened the hadith to highlight the relevant passages but you can read the full version by clicking the link below)

It has been narrated on the authority of Jabir that the Messenger of Allah (may peace be upon him) said: Who will kill Ka'b b. Ashraf? He has maligned Allah, the Exalted, and His Messenger. Muhammad b. Maslama said: Messenger of Allah, do you wish that I should kill him? He said: Yes. He said: Permit me to talk (to him in the way I deem fit). He said: Talk (as you like). So, Muhammad b. Maslama came to Ka'b and talked to him... He then held his head fast and said to his companions: Do your job. And they killed him. Sahih Muslim Book 019, Number 4436

/r/pakistan Thread