Banu Hanifa (بنو حنيفة) is an ancient Arab tribe inhabiting the area of al-Yamama in the central region of modern-day Saudi Arabia. The tribe belongs to the great Rabi'ah branch of North Arabian tribes, which also included Abdul Qays, Taghlib, al-Nammir ibn Qasit, and Anazzah. Though counted by the classical Arab genealogists as a Christian branch of Bani Bakr, they led an independent existence prior to Islam. The ruling House of Saud of Saudi Arabia belongs to it.
The tribe's members appear to have been mostly sedentary farmers at the dawn of Islam, living in small settlements along the wadis of eastern Nejd (known back then as al-Yamama), particularly the valley of Al-'Irdh, which later came to bear their name (see Wadi Hanifa). Sources such as Yaqut's 13th century encyclopedia credit them with the founding of the towns of Hadjr (the predecessor of today's Riyadh) and Manfuha, and being responsible for the granaries of Al-Kharj. According to legend, the tribe had moved to al-Yamamah from the Hejaz after the region's original inhabitants, the extinct people of Tasm and Jadis were decimated by war.
Caliphate
During Muhammad's era the Banu Hanifa tribe were involved in military conflict with him. Muhammad ordered the Expedition of Muhammad ibn Maslamah in July, 627 AD in Muharram, 6 AH.
A platoon of thirty Muslims under the leadership of Muhammad bin Maslamah was despatched on a military mission. It headed for the habitation of Banu Bakr sept. The Muslims attacked that sept and dispersed them in all directions. Plenty of spoils (war booty) were captured and the Muslims returned with the chief of the tribe of Banu Hanifa, called Thumamah bin Uthal Al-Hanafi.
Muhammad's companions tied him to a pole of a Mosque. To a question posed by Muhammad, Thumamah used to say: "If you were to kill someone, then you would have to choose one of noble descent, if you were to be gracious, then let it be to a grateful man and if you were to ask for money, you would have to ask for it from a generous man." He repeated that three times on three occasions.