Sheikh Mustafa was born in 1836 in Beruwala, Sri Lanka. His father Baawa Aadam was a descendant from Sultan Jamaluddeen bin Alawuddeen dunnurainul Usmani, who was a descendant of CaliphUthman ibn Affan, the third Caliph of Islam. Sultan Jamaluddeen bin Halauddeen ruled Konya, a city in the Central Anatolian region of Turkey. Sultan Jamaluddeen and his eleven companions migrated to Sri Lanka. King Wasanthahimiya then ruled Beruwala. King Wasanthhimiya honoured Sultan Jamaluddeen and granted posts to him and his friends according to their status. Sultan Jamaluddeen married the King's sister. Later Sultan Jamaluddeen's friends settled in different places in Sri Lanka such as Colombo, Galle, Hambantota and Batticaloa. They proved influential in mathematics, astronomy, medicine and science. Sheikh Mustafa's father died when he was four and his mother died several years later. After his mother's death, he entered his sister's care.
He returned to Sri Lanka after his Islamic Education and began teaching. He met Sheikh AhmedIbn Mubarak, who was an Islamic Scholar from Hadarmout, Yemen, while he was studying in Kayalpattinam, India. Later Shiekh Mustafa met Ahmed Ibn Mubarak Mowlana in Sri Lanka and became his spiritual follower. Sheikh Mubarak Moulana founded the Qadiriyyathun Nabaviyyah Tariqa Sufi order which is a branch of QadiriyaTariqa. Sheikh Mubarak Moulana and Sheikh Mustafa travelled around Sri Lanka to places such as Galle, Beruwala, Balapitiya, Thunduwa, Kahatowita, Malwana, Viyangalla and other places and they established a Takkiya in those villages. They founded a Takkiya in Beruwela. This Takkiya is the headquarters of the Qadiriyyathun Nabaviyyah Tariqa in Sri Lanka. Sheikh Mubarak Moulana later gave Ijaaza and granted the Khilafa of Qadiriyyathun Nabaviyyah Tariqa Sufi order to Sheikh Musthafa. Sheikh Mubarak Moulana died in the year 1862. His body is buried in Galle. Sheikh Musthafa became the leader of the Qadiriyyathun Nabaviyyah Tariqa. Sheikh Ahdal Mowlana who is the Islamic scholar from Yemen came to Sri Lanka and met Sheikh Mustafa in Beruwela. Both of them initiated the Saheehul Bukhari annual commemoration feasts in Beruwela Takkiya. He performed his sixth and last Hajj in 1888. He died on 25 July 1888 in Makkah. His body is buried in Jannathul Mualla, Makkah, in the vicinity of Khadija bint Khuwaylid grave. Sheikh Mustafa was the first Ajami who is buried in Jannathul Mualla, Makkah.
Works
Sheikh Mustafa was one of great scholar who contribute to Arwi.
Fathhur-Rahma Fi Tarjimati Tafsir al-Quran
Sheikh Mustafa wrote many books on a variety of religious and social topics and was the first person to translate the Qur'an into Arabic Tamil under the title Fathhur-Rahma Fi Tarjimati Tafsir al-Quran. This was published in five volumes in Hijri 1291/1874.
Mizan Maalai is an Arabic Tamil poetrybook which includes 149 poems which is the first printed Tamil book in Tamil printing History in Sri Lanka. This book briefly discuss about the Islamic Aqida.