In one youtube video, Dr Tahir-ul-Qadri is seen asking a dead person to recite ‘Kalima’. This thing (MaazAllah) is not allowed in Shariah

Following is taken from this website and has been paraphrased below:

Official Reply:Tahir ul Qadri Ne Murday Ko Kalima Padaya [Reminding dead after Burial is Proven in Hadith]

Shaykh-ul-Islam Dr. Muhammad Tahir-ul-Qadri has indeed reminded Kalima to a dead Person. It is absolutely permissible to make dead person recite Kalima per Shariah because it is proven from Prophetic Hadith and traditions that dead people can hear. Dr.Tahir-ul-Qadri has done this in accordance with Hadith.

For references read Sunan Ibn e Majah, Sunan Nasai, Al-Muhjam al-Kabir Tabrani,Imam Jalal ud din Sayuti,Kanz ul Amal, Ibne Rajab al-Hanbali, Ibn Abideen Shami, Mullah Ali Qadri, Imam Abu Dawood.

Here are some links providing this clarification in Urdu:

Here is a video providing same details:

Here is another video lecture by Mufti Muhammad Akmal Qadri (Qtv) providing good explanation on the subject:

Here is another video lecture by Maulana Habeeb Ahmed Al-Hussaini of India providing good explanation on the subject:

by Allama Muhammad Iqbal Fani