The historical events mentioned in Quran has been named by...
The historical events mentioned in Quran has been named by Quran as "the tidings/news of Ghayb" (11:49, 12:102, 25:4-6) which are all the second kind which did not come via senses. The Holy Quran is quite specific about the fact that Allah alone has the knowledge of Ghayb (what is concealed) in the heavens and the earth.
Quran tells us that there are keys to the Ghayb which are with Allah: "With Him are the Keys of the Ghayb; non knows them but He." (Quran 6:59) and that no one knows anything of Allah's knowledge except if He will. Quran tells about the knowledge and the intercession of the and his twelve successors that: "Who can intercede with Him except the cases He permits?
He knows what is in front of them (the Prophet and the Imams) and what is behind them, and they encompass nothing of His knowledge except what He will." (Quran 2:255) This shows that the core/keys of the Knowledge of Ghayb is with Allah, but He may release "a news of Ghayb" to the one He wills.
According to the Quran, things which are special property of Allah, such as creation, giving life, curing without medicine, the knowledge of what has happened and what will happen, may either be momentarily given by Him at the moment they are required, or else the power and ability to do them may be given so that they can be used when necessary, by the permission of Allah.
An example of the latter comes in the story of Prophet Jesus (AS) who, according to Quran, said: "I have come to you with a sign from your Lord; I will CREATE for you out of clay a figure of a bird, then I will breath into it, and it will be a bird by leave of Allah; I will also HEAL the blind and the leper, and BRING TO LIFE the dead, by leave of Allah. I will also INFORM you of what things you eat and what you treasure up in your houses.
Surely, in that is a sign for you, if you are believers." (Quran 3:49; see also 5:110) To give a simple example, consider a person who looks at a monitor which displays some part of a database located in the hard drive of a computer. The user can retrieve any part of this database and see it on the monitor. But the whole database is always in the computer and not in the user's head.
Furthermore, the user is unaware of any real-time modifications that may happen to this data base and the formulas behind the modifications. Allah let the Prophet and Imams know whatever they needed to know. However, they don't have the whole knowledge within themselves.