“Our delegation who went to the Messenger of Allah (ﷺ) to
announce the Islam of Thaqif told us that they came to him in
Ramadan.
He set up a tent for them in the mosque, and when they
became Muslim,
they fasted what was left of the month.”
Sunan Ibn Majah Book 7, Hadith 123