Adjacent to this shrine is another mosque , built over the location where the Twelfth or `` Hidden '' Imām , Muħammad al-Mahdī first entered the Minor Occultation .
It stands next to a shrine to the Twelfth or `` Hidden '' Imām , Muħammad al-Mahdī .