On his way to the palace he raised his eyes and saw the seven Heavens and all that therein is, even to the Lote-tree, beyond which there is no passing, and the manner of the revolution of the spheres. Moreover, Allah discovered to him the ordinance of the planets and the scheme of their movements and the fixed stars; and he saw the contour of the land and sea, whereby he became informed with geometry, astrology and astronomy and mathematics and all that hangeth thereby; and he understood the causes and consequences of eclipses of the sun and moon. Then he looked at the earth and saw all minerals and vegetables that are therein and thereon; and he learned their properties, and their virtues, so that he became in an instant versed in medicine and chemistry and natural magic and the art of making gold and silver.