Sufism emerges in the historical record as a set of practices, vocabularies and social formations within early Islam rather than as a single founding moment. Scholarly consensus places the formative period broadly in the 8thβ10th centuries CE, within the cosmopolitan cities of the early Abbasid caliphate such as Basra, Kufa and Baghdad (8thβ9th century). Adherents, by contrast, often trace Sufism's origin to the prophetic model of the Prophet Muhammad and to early ascetics whose interior practices they read as continuations of the Prophet's example. Historically attested names associated with the earliest phase include Hasan al-Basri (642β728 CE), an ascetic preacher in Basra whose critiques of worldly attachment and emphasis on repentance are widely acknowledged by scholars to have influenced later Sufi vocabularies.
Concrete practices that later become emblematic β asceticism (zuhd), intensive dhikr (remembrance), and ethical rigor β appear in early hadith literature and biographical compilations from the 8thβ10th centuries; historians note that these elements circulated among both urban literati and desert ascetics. An illuminating tension appears already in these early sources: some communities emphasized renunciation of the world and solitude, while others cultivated affective love and social guidance within towns. This tension β solitary asceticism versus socially embedded sanctity β continues to shape Sufi formations.
The figure of Rabia al-Adawiyya (traditionally dated to the late 8th century) occupies an important place in the tradition's self-understanding: later Sufi hagiographies present her as exemplifying passionate, devotional love (mahabba) for God independent of hope for paradise or fear of hell. Scholars treat such hagiographies cautiously: while the precise historicity of Rabia's sayings is debated, her image crystallizes a devotional ideal that many later Sufis explicitly adopt. A verifiable datum from this period is the circulation of ascetic discourses in the works of early exegetes and in the Basran milieu by the early 700s.
By the 9th and 10th centuries, the term "sufi" begins to appear in biographical and legal literature; Junayd of Baghdad (d. c. 910) becomes associated with an attempt to articulate a sober, theologically defensible mysticism (sahw versus sukr, wakefulness versus ecstatic intoxication). Junayd's school illustrates a formative transition in which personal experience of God is framed in ways compatible with Sunni theological categories β a historical development scholars have documented through examination of early Baghdad circles and juristic debates recorded in classical sources.
The institutional contours that later characterize Sufism β chains of initiation (silsila), organized lodges (khanqah, zawiya, tekke), and defined spiritual exercises β take clearer shape between the 11th and 13th centuries. This period witnesses the emergence of named teachers who claim authorization by spiritual chains reaching back to the Prophet; the Moroccan malamatite or anti-ascetic currents also appear and provoke polemics. A specific, verifiable fact is that the term tariqa (path or order) is well attested in sources by the later medieval period as a way to identify organized spiritual lineages.
Geography plays a formative role. In the eastern Iranian world, Khurasan and Transoxiana host networks that produce figures such as those who later inspire the Naqshbandi orientation; in Anatolia and the eastern Mediterranean the interaction with Byzantine Christian ascetic traditions configures distinctive devotional idioms. In North and West Africa, Sufi tendencies are attested by the 11thβ13th centuries and crystallize into orders like the Qadiriyya and later the Tijaniyya. These regional trajectories underscore a comparative point: Sufism is not monolithic but a family of related paths, each negotiating local religious grammars while claiming continuity with early Muslim piety.
The role of texts in the early centuries is complex. While later Sufis rely on a set of didactic and esoteric writings, the earliest communities transmitted much by word of mouth and exemplification: sayings, stories of spiritual trials, and practical guidance. Parallel to oral transmission, the appearance of works of mystical exegesis β commentaries that read Qur'anic verses in light of interior states β grows from the 9th century onward. Scholars have emphasized that the interplay of oral and written transmission makes the early formation both dynamic and difficult to reconstruct with precision.
A second notable tension is between Sufism and Islamic jurisprudence. In many regions Sufis maintain close relations with legal scholars; in others, conflict arises when ecstatic practices or saint-veneration appear to challenge norms. These tensions are attested in court records, fatwas and polemical writings from medieval Baghdad to Ottoman Istanbul, providing concrete evidence that the place of mystics within Islamic law was negotiated over centuries.
By the late medieval era, the social visibility of Sufism expands: the patronage of rulers, the establishment of large hospices and charitable foundations, and the integration of Sufi sharifs into political life make Sufism a significant social institution. The Mevlevi order in Konya, associated with the 13th-century poet Jalal al-Din Rumi (1207β1273), and the Shadhili order in North Africa and the Maghreb are examples of how distinct spiritual lineages crystallized. A verifiable event is the founding of the Mevlevi community in Konya following Rumi's death in 1273, which demonstrates how a charismatic figure's circle institutionalized devotional practice.
In sum, the origins of Sufism are best understood as a protracted and regionally variegated process that draws on early asceticism, prophetic imitation, philosophical speculation and social adaptation. Both adherents and historians recognize the 8thβ10th centuries as formative; adherents emphasize unbroken continuity with prophetic spirituality, while historians document gradual institutionalization and regional diversification across the medieval centuries.
