The Ghaṭafān (Arabic: غطفان) are a massive ancient tribe north of Medina and from them come the tribes of Banu Abs, Banu Dhubyan and Ashja'. They were one of the Arab tribes that interacted with Muhammad. They are notable for allying themselves with the Quraysh in the Battle of the Trench.
They were involved in several military conflicts with Muhammad. The first was the Invasion of Dhi Amr occurred directly after the Invasion of Sawiq in the year 3 A.H of the Islamic calendar, September 624. The expedition was ordered by Muhammad after he received intelligence that the Banu Muharib and Banu Talabah tribes, were planning to raid the outskirts of Madinah. Therefore, Muhammad launched a per-empetitive strike with 450 men.
Another conflict they were involved in was the Expedition of Dhat al-Riqa where Muhammad ordered an attack on the tribe because he received news that they were assembling at Dhat al-Riqa with a suspicious purpose.
This was followed by the Invasion of Dumatul Jandal. Muhammad ordered his men to invade Duma, because Muhammad received intelligence that some tribes there were involved in highway robbery and preparing to attack Medina itself This happened in July 626.
Then Expedition of Abu Qatadah ibn Rab'i al-Ansari (Khadirah) in November or Dec 629 the Expedition of Abu Qatadah ibn Rab'i al-Ansari (Khadirah) took place. With the goal of attacking the Ghatafan tribe because he heard that they were amassing troops and were still outside the "domain of Islam"Nuaym ibn Masud