context: Abu Amer Muhammad bin Abi Amer (327 - 392 AH / 938 AH - 1002 CE), famous for the title of al-Hajib al-Mansur, the pilgrim of the caliphate and the actual ruler of the Umayyad caliphate in Andalusia during the era of Caliph Hisham al-Muayyad Billah. Muhammad bin Abi Aamir started his political career and graduated in positions since the era of the Caliph Al-Hakam Al-Mustansir Billah, and he was closely affiliated with the wife of the Caliph Sobah Al-Bashanqiyya or Caliph Hisham Al-Muayyad Billah, who was a will to the throne of her son after the death of her husband Al-Hakam. Sobh Al-Hajeb assisted Al-Mansur to exclude all his competitors, and he did not make the best use of it to the maximum extent, and even went further than that by stoning the caliph boy, and restricting his authority, along with his mother. With Hajib al-Mansur's ability to rule, he turned to the expansion of the state to the north, and by his military campaigns he moved the borders of the Christian kingdoms in the north beyond the Douira River, [1] and the Umayyad dynasty in Andalusia reached the height of its power during his reign.
question: When did Abu Amer Muhammad bin Abi Amer die?
answers.text: 1002 CE