The magic square of order three was described as a child-bearing charm since its first literary appearances in the alchemical works of Jābir ibn Hayyān (fl. c. 721 – c. 815) and al-Ghazālī (1058–1111) and it was preserved in the tradition of the planetary tables. The earliest occurrence of the association of seven magic squares to the virtues of the seven heavenly bodies appear in Andalusian scholar Ibn Zarkali's (known as Azarquiel in Europe) (1029–1087) "Kitāb tadbīrāt al-kawākib" ("Book on the Influences of the Planets"). A century later, the Algerian scholar Ahmad al-Buni attributed mystical properties to magic squares in his highly influential book "Shams al-Ma'arif" ("The Book of the Sun of Gnosis and the Subtleties of Elevated Things"), which also describes their construction. This tradition about a series of magic squares from order three to nine, which are associated with the seven planets, survives in Greek, Arabic, and Latin versions. There are also references to the use of magic squares in astrological calculations, a practice that seems to have originated with the Arabs.