Allah caused the day of Buath to take place before Messenger of Allah ﷺ was sent (as an Apostle) so that when Messenger of Allah ﷺ reached Medina, those people had already divided (in different groups) and their chiefs had been killed or wounded. So Allah made that day precede Messenger of Allah ﷺ so that they (i.e. the Ansar) might embrace Islam.
كَانَ يَوْمُ بُعَاثٍ يَوْمًا قَدَّمَهُ اللَّهُ لِرَسُولِهِ ﷺ فَقَدِمَ رَسُولُ اللَّهِ ﷺ وَقَدِ افْتَرَقَ مَلَؤُهُمْ وَقُتِّلَتْ سَرَوَاتُهُمْ وَجُرِّحُوا قَدَّمَهُ اللَّهُ لِرَسُولِهِ ﷺ فِي دُخُولِهِمْ فِي الإِسْلاَمِ