Mulla Ali Qari severely condemns those scholars who claim that the Prophet (sallallahu alayhi wa sallam) was given the knowledge of the hour. It mentions clearly in al-asrar al-marfu’a fi akhbar al-mawdu’a that such people are lying.
It is stated after quoting the work of Suyuti on the duration of the umma:
“He said: Some people in our time who claim to have knowledge openly uttered the lie (jahara bi l-kadhib) that the Prophet (may Allah bless him and give him peace) knew the time of the Hour.” It is said to them. He said in the narration of Jibril: “The one who is asked the question those not know more than the questioner.” So they distorted it from it’s place and said: “Its meaning is: you and I know [the Hour].
This is from the greatest ignorance and filthiest distortion.”
See page 431-432, fasl 15. He refutes the whole concept of knowing everything in that fasl until p. 435. He calls such people extremists who claim that the Prophet knew the reality of the case when Sayyida Aisha was slandered. In the end he compares people with such beliefs with Christians. The book of Mulla Ali Qari can be downloaded here:
One needs to know that it was Mufti Ahmad Yar Khan who in his works, stated that the meaning of “The one who is asked the question those not know more than the questioner” is that both Jibril and the Prophet (sallallahu alayhi wa sallam) know the hour.
In the words of Mulla Ali Qari: he must be an ignorant and filthy distorter of Islam.