Ali bin Rabia reported,

I was present with Ali رضي الله عنه when an animal was brought for him to ride. When he placed his foot in the stirrup, he said, "In the name of Allah." When he settled upon its back, he said, "Praise be to Allah." Then he recited, "Glory be to Him who has subjected this to us, and we could never have done it ourselves, and indeed to our Lord we will return" [Zukhruf 43:13–14].Then he said, "Praise be to Allah" three times, then he said, "Allah is the Greatest" three times, then he said, "Glory be to You, I have indeed wronged myself, so forgive me, for none forgives sins but You."Then he laughed, and someone asked, "Commander of the Believers, what made you laugh?"He replied, "I saw the Prophet ﷺ do as I have done, then he laughed, so I asked, 'Messenger of Allah, what made you laugh?' He said, 'Your Lord marvels at His servant when he says, "Forgive me my sins," knowing that none forgives sins besides Me.'"

Abu Dawud 2602

Sahih

حدثنا مسدد حدثنا أبو الأحوص حدثنا أبو إسحق الهمداني

عن علي بن ربيعة قال

شهدت عليا رضي الله عنه وأتي بدابة ليركبها فلما وضع رجله في الركاب قال بسم الله فلما استوى على ظهرها قال الحمد لله ثم قال {سبحان الذي سخر لنا هذا وما كنا له مقرنين وإنا إلى ربنا لمنقلبون} ثم قال الحمد لله ثلاث مرات ثم قال الله أكبر ثلاث مرات ثم قال سبحانك إني ظلمت نفسي فاغفر لي فإنه لا يغفر الذنوب إلا أنت ثم ضحك فقيل يا أمير المؤمنين من أي شيء ضحكت قال رأيت النبي ﷺ فعل كما فعلت ثم ضحك فقلت يا رسول الله من أي شيء ضحكت قال إن ربك يعجب من عبده إذا قال اغفر لي ذنوبي يعلم أنه لا يغفر الذنوب غيري

أبو داود 2602صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Jihad
Chapter
What a man says when he mounts
Numbering
Darussalam 2602
Abu Dawud 2602