Sahih al-Bukhari, Book 56, Hadith 270 (Bukhari 2939)

Narrated Abu Talha:

Whenever the Prophet (ﷺ) conquered some people, he would stay in their town for three days.