It is used as an honorific in Sunni Islam as well as in Shia Islam, mostly in South Asia, the Middle East and Iran.
Sunnis and Shias who have achieved scholarship in several disciplines are often referred to by the title.