Jami` at-Tirmidhi, Book 21, Hadith 4 (Tirmidhi 1587)

Narrated Abu Talhah:

"When the Prophet (ﷺ) overtook a people he would stay at the outskirts of their city for three nights."