Ajman attacked the Sobyie tribe in 1764 who called on Ibn Saud to protect them from Ajman tribe. Ibn Saud responded immediately and killed 50 and captured 240 persons of Ajman. Rakan bin Hithalayn sent two of his sons to Banu Yam in Najran asking them for help. Najran was nightmare for Ibn Saud at that time. Sheikh Hassan bin Hebat Allah was the religious leader of Yam. He responded to Ajman's request and called for the general mobilization to Adderyah in Riyadh with 500 men on 500 black horses (one of their techniques in war). Yam's reputation was terrifying every single tribe at the time which pushed the Qahtan tribe to build an alliance with them. Yam arrived in Riyadh joined Ajman and moved to Adderyah. Ibn Saud had 3700 men but Sheikh Muhammed bin Abdulwahab warned Mohammed bin Saud asking him to make peace with Yam, but he fought them and was defeated. Yam's army killed about 390 men, captured 220 men and got the Ajman prisoners back from Ibn Saud. Ibn Saud had to make peace with Yam so that Yam would go back to Najran and Ajman would stay in Najd under Yam's full protection. Ibn Saud knew that Yam would keep their word and fight to defend it so he was not worried about them once they'd made peace. This battle was named Al-Ha'ir (الحائر).