I have 2 questions to ask of you.
1. There are people who believe that Prophet Muhammad (PBUH) had knowledge of the unseen (‘Ilm-e-Ghayb). They say that in addition to revelation (waḥī) Allah used to convey to him (PBUH) through Angel Gabriel (as) information of future for onward communication to people. They (people) claim that to be knowledge of the unseen (‘Ilm-e-Ghayb).
2. These people also insist that one should pray to Allah in the name of pious religious scholars and the divine Messengers especially the Holy Prophet (sws).