Sahih Muslim Book 20, Hadith Number 4596.

Chapter : No migration after the conquest of Mecca but allegiance could be sworn (to a rightful leader) on serving the cause of Islam, on fighting in the way of Allah and on following the path of virtue.

Another version of the tradition transmitted on the authority of Asim has the same wording but does not mention the name of Abu Ma’bad.