Imam Hasan (a.s.), like all other Imams was granted divine knowledge by Allah (swt) and he demonstrated it right from his childhood.
Once Imam Hasan (a.s.) was asked "What are the 10 strong things that are stronger than one another?" Imam Hasan (a.s.) replied:
Among the strong things is Stone;
Even stronger is the Iron which is used to break Stone;
Even stronger is the Fire which melts Iron;
Even stronger is the Water which extinguishes Fire;
Even stronger are Clouds that carry Water with them;
Even stronger is the Air which floats the Clouds with it;
Even stronger is the Angel who moves the Air;
Even stronger is the Angel who will give Death to the Angel who moves the Air;
Even stronger is the Death which will come upon the Angel of Death; and
Even stronger is the order of Allah (swt) which governs the Death.
Once the ruler of Rome asked Imam Hasan (a.s.): "Which are the creations which were born without a mother and father or Male and Female?" and Imam Hasan (a.s.) replied:
These are 7 creations: Hazrat Adam (a.s.), Hazrat Hawwa (a.s.), the lamb which was sent in place of Hazrat Ismaeel (a.s.), the camel of Hazrat Saleh (a.s.), the serpent of Hazrat Moosa (a.s.), Iblees and the crow that taught the method of burial to Qabeel son of Hazrat Adam (a.s.).