Twelve men from Madinah meet him at ‘Aqabah and pledge to worship Allah alone and not to steal, commit adultery, kill their children, slander, or disobey him in what is right.
As the book dates it: the pilgrimage of the following year (12th year of Prophethood)