An Excerpt from Al-Malfuz Shareef in which Imam Ahmed Raza addresses a dis-respecter of the Prophet [sallAllahu alaihi wa sallam] on the issue of Ilm al Ghayb:
“A person whose leaning was towards Wahabism ideology, asked a question pertaining to the knowledge of the unseen [ilm al-ghayb] of Sayyiduna RasulAllah sallAllahu alayhi wa sallam. The noble imam thus replied,
Do you ask about the general ‘ilm al-ghayb or the knowledge of maa’yakoon [happenings in the future]? I will answer to according to the question.
“I accept that Sayyiduna RasulAllah sallAllahu alayhi wa sallam is the most high and excellent creation and i also believe that he is roshan zameer. But I do not accept that he is aware of theintentions in the hearts of people.”
roshan zamir itself means to know the conditions of the heart. Allah almighty states in the blessed Qur’an,
Allah will not leave the believers in the state in which you are now, until He separates what is evil from what is good. nor will Allah almighty disclose to you the secrets of the Unseen, but He almighty chooses of His Messengers [for the purpose] whom He pleases. so believe in Allah almighty and His Messengers; and if you believe and do right, you will have a reward without measure.
Another ayah states,
He [Alone] knows the Unseen, nor does He make anyone acquainted with His Mysteries, except a Messenger whom He has chosen, and then He makes a band of watchers march before him and behind him.
Allah almighty not only exposes it, but also gives it to His chosen Prophet [sallAllahu alaihi wa sallam]s. it is the consensus of the ulama of Ahl as-Sunnah that whatever excellence was granted to other Prophet [sallAllahu alaihi wa sallam]s of Allah was all given in a higher scale to Sayyid al-Alameen sallAllahu alayhi wa sallam. Whatever excellence any Prophet [sallAllahu alaihi wa sallam] possessed was actually granted to him by Sayyiduna Muhammad sallAllahu alayhi wa sallam. This he granted by the Divine Grace of Allah Almighty. It is in the Sahih of Bukhari and Muslim,
And verily, I am the distributor, and Allah Almighty the Provider.”
woh razā ke neza kī maar ĥai, ke ‘adūw ke seena maiN ghār ĥai,
kisse chāra jaw’yī ka waar ĥai, ke yeh waar waar se paar ĥai
such is strike of Raza’s spear, that it pierces the enemy’s chest ample and deep;
who wants to make an wound that can be healed? this is a strike that shall send the enemy beyond gallows [death] once and for all!
 Al Malfuz Shareef p. 27-28
 naẓar ik chaman se do chaar hai