Muhammad bin al-Aswad bin Khalaf (may Allah have mercy on him) narrates from his father, Sayyiduna Aswad (may Allah be pleased with him), that on the day of the Conquest of Makkah he saw the Prophet (peace and blessings be upon him) taking the pledge of allegiance from the people. He said: "He (peace and blessings be upon him) sat at Qarn Masqalah and took the pledge of allegiance from the people on Islam and the testimony."
Ibn Jurayj (may Allah have mercy on him) says: I asked (my teacher Abdullah bin Uthman bin Khuthaym, may Allah have mercy on him): "What is meant by the testimony?" He said: Muhammad bin al-Aswad bin Khalaf (may Allah have mercy on him) told me: "The Prophet (peace and blessings be upon him) took the pledge from the people on belief in Allah, the Mighty and Majestic, and on testifying that there is no god but Allah and that Muhammad (peace and blessings be upon him) is His servant and Messenger."
Related hadith on this topic