In Islam, the terms ḥanīf (SING; Arabic: حنيف, lit. 'a renunciate [of idolatry]') and ḥunafā' (PLUR; حنفاء) are primarily used to refer to pre-Islamic Arabians who were Abrahamic monotheists. These people are regarded in a favourable light for shunning Arabian polytheism and solely worshipping the God of Abraham, thus setting themselves apart from what is known as jahiliyyah. However, it is emphasized that they were not associated with Judaism or Christianity—and instead adhered to a unique monotheistic faith that exemplified the unaltered beliefs and morals of Abraham.
https://en.wikipedia.org/wiki/Hanif