Ibn Khafif, Muhammad ibn Khafif ibn Asfakshad, Abu `Abd Allah al-Shirazi al-Dibbi al-Shafi`i al-Sufi (276?-371). Al-Sulami said of him: “The Folk (al-qawm, i.e. the Sufis) do not have anyone older than him nor more complete in his state and reality today.” He took kalam from al-Ash`ari , fiqh from Ibn Surayj, and tasawwuf from Ruwaym, al-Jariri, and Abu al-`Abbas ibn `Ata’. Al-Dhahabi said of him: “He is at the same time one of the most knowledgeable shaykhs in the external sciences (`ulum al-zahir).” Ibn Taymiyya names him among the great Sufi representatives of the Sunna:
The great shaykhs mentioned by Abu `Abd al-Rahman al-Sulami in Tabaqat al-Sufiyya and Abu al-Qasim al-Qushayri in were adherents of the school of Ahl al-Sunna wa al-Jama`a and the school of Ahl al-Hadith, such as Fudayl ibn `Iyad, al-Junayd ibn Muhammad, Sahl ibn `Abd Allah al-Tustari, `Amr ibn `Uthman al-Makki, Abu `Abd Allah Muhammad ibn Khafif al-Shirazi, and others, and their speech is found in the Sunna, and they composed books about the Sunna.
Ibn Khafif reported from his teacher Ibn Surayj that the proof that love of Allah was a categorical obligation (fard) was in the verses: “Say: If your fathers, and your sons, and your brethren, and your wives, and your tribe, and the wealth you have acquired, and merchandise for which you fear that there will be no sale, and dwellings you desire are dearer to you than Allah and His messenger and striving in His way: then wait till Allah brings His command to pass. Allah guides not wrongdoing folk.” (9:24) For punishment is not threatened except due to a categorical obligation. He once said to the followers of Ibn Maktum: “Busy yourself with the acquisition of some knowledge, and do not let the words of the Sufis [to the contrary] fool you. I myself used to hide my inkwell and pen inside my clothes, and go secretly to visit the scholars. If they [the Sufis] had found out, they would have fought me and they would have said: You will not succeed. Later they found themselves needing me.”
When Ibn Khafif became too weak to stand in his habitual supererogatory prayers, he prayed double their number sitting, in view of the Prophet’s report whereby “The prayer of one sitting is half that of one standing.” Ibn Bakuyah related from Ibn Khafif that he said: “In my beginnings I would recite in one rak`a “Qul huwa Allahu ahad” [Sura 112] ten thousand times, or recite the entire Qur’an in one rak`a.” “Never in forty years was the Ramadan-end purification tax (zakat al-fitr) incumbent upon me.” Al-Sulami said: “Abu `Abd Allah came from a family of princes, but he practiced asceticism (zuhd) to the point that he said: ‘I would collect rags from refuse-heaps, wash them, and mend whatever I could use for clothing, and I spent fourteen months breaking my fast at night with a handful of beans.'”