Jami` at-Tirmidhi, Book 49, Hadith 343 (Tirmidhi 4040)

Narrated 'Imran bin Husain:

"The Prophet (ﷺ) died while he was having trouble with three tribes: Thaqif, Banu Hanifah, and Banu Umayyah."