Al-Qasim ibn Idris was an Idrisid prince and ruler in parts of present-day Morocco during the 9th century.