Ain Madhi is a village in the Wilaya of Laghouat. There is a distinction between the new Ain Madhi and the old town where Seyyidina Ahmed Tidjani (may ALLAH sanctify his precious secret) lived and where the Prophet (peace and blessings be upon him) walked.
Among the virtues of this noble town, there are the words of the well-known Sidi Muhammad Ibn Arabi Damrawi (may ALLAH be pleased with him), companion of Seyyidina (may ALLAH sanctify his precious secret), who said to the inhabitants of Ain Madhi: “If I show you all the parts where Seyyidina Ahmed Tidjani (may ALLAH sanctify his precious secret) walked in the company of the Prophet (peace and blessings be upon him) you would have to walk for three days to relieve yourself.” Furthermore, the great companion and pole Sidi Hajj ‘Ali Tamacini (may ALLAH be pleased with him) said : “This town is like a place of spiritual retreat and here your wishes will be fulfilled.”
The old town of Ain Madhi is an oasis, it was founded in the 6th century ad and at present it is almost empty (but recently the Algerian government has initiated renovation with the long term aim of resettling people there). This town was named after Al Madhi ben Yaqoub who founded it after discovering a spring (which is located 3 kilometers from the town)