Ahmad ibn ‘Ali al-Buni, also called Sharaf al-Din or Shihab al-Din Ahmad ibn Ali ibn Yusuf al-Buni al-Maliki al-ifriqi was an Arabmathematician and philosopher and a well known Sufi and writer on the esoteric value of letters and topics relating to mathematics, sihr and spirituality, but very little is known about him. Al-Buni lived in Egypt and learned from many eminent Sufi masters of his time. A contemporary of Ibn Arabi, he is best known for writing one of the most important books of his era; the Shams al-Ma'arif, a book that is still regarded as the foremost occult text on talismans and divination. It was to be banned soon after as heretical.
Instead of sihr, this kind of magic was called Ilm al-Hikmah, Ilm al-simiyah and Ruhaniyat. Most of the so-called mujarrabât books on sorcery in the Muslim world are simplified excerpts from the Shams al-ma`ârif. The book remains the seminal work on Theurgy and esoteric arts to this day.
In Mathematics and Science
In c. 1200, Ahmad al-Buni showed how to construct magic squares using a simple bordering technique, but he may not have discovered the method himself. Al-Buni wrote about Latin squares and constructed, for example, 4 x 4 Latin squares using letters from one of the 99 names of Allah. His works on traditional healing remains a point of reference among Yoruba Muslim healers in Nigeria and other areas of the Muslim world.
Magical Square
Al-Buni states in the same work that he acquired his knowledge of magical squares from Sirâj al-Dîn al-Hanafi, who acquired it from Shihab al-Dîn al-Muqaddasi, who acquired it from Shams al-Dîn al-Farisi, who acquired it from Shihab al-Dîn al-Hamadani, who acquired it from Qutb al-Dîn al-Diyâ’i, who acquired it from Muhyiddîn Ibn Arabi, who acquired it from Abu al-'Abbas Ahmad ibn al-Turîzi, who acquired it from Abu Abdillah al-Qurashi, who acquired it from Abu Madîn al-Andalusi.
Art of Letters
He also states that he acquired additional knowledge about the esoteric art of letters and the magical squares from Mohammad 'Izz al-Dîn ibn Jam’a, who acquired it from Mohammad al-Sirani, who acquired it from Shihab al-Dîn al-Hamadani, who acquired it from Qutb al-Dîn al-Dhiya’i, who acquired it from Muhyiddîn Ibn Arabi.
Occult Knowledge
Al-Buni also states that he acquired his occult knowledge from Abu al-'Abbas Ahmad ibn Maymûn al-Qastalâni, who acquired it from Abu Abdillah Mohammed al-Qurashi, who acquired it from Abu Madîn Shu'ayb ibn Hasan al-Ansari al-Andalusi, who received it from Abu Ayyub ibn Abi Sa'id al-Sanhaji al-Armuzi, who received it from Abi Muhammad ibn Nur, who received it from Abu al-Fadhl Abdullah ibn Bashr, who received it from Abu Bashr al-Hasan al-Jujari, who received it from Sirri Saqti, who received it from Dawûd al-Tâ’i, who received it from Habîb al-A'jami, who received it from Abu Bakr Muhammadibn Sîrîn, who received it from Malik ibn Anas.
Emerald Tablet
Al-Buni also made regular mention in his work of Plato, Aristotle, Hermes, Alexander the Great, and obscure Chaldean magicians. In one of his works, he recounted a story of his discovery of a cache of manuscripts buried under the pyramids, that included a work of Hermetic thinkers.
His influence
His work is said to have influenced the Hurufis and the New Lettrist International. Denis MacEoin in a 1985 article in Studia Iranica said that Al-Buni may also have indirectly influenced the late Shi'i movement of Babism. MacEoin said that Babis made widespread use of talismans and magical letters.
Writings
Shams al-Maʿārif al-Kubrā, Cairo, 1928.
Sharḥ Ism Allāh al-aʿẓam fī al-rūḥānī, printed in 1357 AH or in Egypt al-Maṭbaʿa al-Maḥmudiyya al-Tujjariyya bi'l-Azhar.