"When the Prophet (ﷺ) overtook a people he would stay at the outskirts of their city for three nights."
Jami` at-Tirmidhi Book 21, Hadith 4