The scouting body of Madinah reported that Banu Saleem of Ghatafan were engaged in mustering troops to invade the Muslims. The Prophet [pbuh] took the initiative himself and mounted a surprise attack on them in their own homeland at a watering place called Al-Kudr. Banu Saleem, on receiving the news, had fled before he arrived. He stayed there for three days, took their 500 camels as booty and distributed them to the fighters after he had set aside the usual one-fifth; each one gained two camels.
This invasion took place in Shawwal in the year 2 A.H., seven days after the event of Badr. [Za'd Al-Ma'ad 2/90; Ibn Hisham 2/43,44; Mukhtasar Seerat Ar-Rasool p.236]