During Muhammad's activities in Mecca and Medina, the Sulaym, as their Qurayshi allies, were hostile to Muhammad and his message. An exception among the tribesmen was Safwan ibn Mu'attal, a member of the Dhakwan in Medina who became a companion of Muhammad. Several clans of the Sulaym joined the Kilabi chief Amir ibn al-Tufayl in his attack targeting Muslim missionaries at Bi'r Ma'una in 625. The Sulaym under the Dhakwani chief Sufyan ibn 'Abd Shams continued to fight alongside the Quraysh at the Battle of the Trench in 627, but by the time Muhammad victoriously entered Mecca in January 630, the vast majority of the Sulaym had converted to Islam and defected to his side. They fought alongside Muhammad and the Quraysh against a coalition of pagan Arab tribes at the Battle of Hunayn later that year; only Sufyan ibn 'Abd Shams's son Abu'l-A'war fought alongside the pagans.