Hadith 8:3160
Abu Bakr narrated to us, he said: Waki’ narrated to us, from al-Mas’udi, from Abu Ishaq, he said: When Ali would touch the Black Stone, he would say: "O Allah, in affirmation of Your Book and the Sunnah of Your Prophet."
حدثنا أبو بكر قال نا وكيع عن المسعودي عن أبي إسحاق قال كان علي إذا استلم الحجر يقول اللهم تصديقا بكتابك وسنة نبيك