Somalia also well established, with many local "jama'a" ("zawiya") or congregations of the various "tariiqa" or Sufi orders. The constitution of Somalia likewise defines Islam as the state religion of the Federal Republic of Somalia, and Islamic sharia as the basic source for national legislation. It also stipulates that no law that is inconsistent with the basic tenets of Shari'a can be enacted. Islam entered the region very early on, as a group of persecuted Muslims had sought refuge across the Red Sea in the Horn of Africa at the urging of the Islamic prophet Muhammad. Islam may thus have been
Masjid al-Qiblatayn (Somalia) Masjid al-Qiblatayn (Somalia) Masjid al-Qiblaṫayn (; "Mosque of the two Qiblahs") is a mosque in Zeila, situated in the northwestern Awdal region of Somalia. The mosque's construction dates to the 7th century CE, shortly after the "Hijrah" () of Muslims to what was then Abyssinia. It is one of the oldest mosques in Africa. It contains the tomb of Sheikh Babu Dena. Though now mostly in ruins, the edifice features two mihrabs: one oriented to the north toward Mecca, and the other oriented to the northwest toward Jerusalem. The construction of this Mosque is tied to the History of Islam