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

Sahih al-Bukhari Book 56, Hadith 270