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 favorable 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 their perception of the unaltered beliefs and morals of Abraham.
https://en.wikipedia.org/wiki/Hanif