The Prophet ﷺ spoke to a man about something and said, "Indeed, all praise is due to Allah. We praise Him and seek His help. Whomever Allah guides, none can lead astray, and whomever He leads astray, none can guide. I bear witness that there is no god but Allah alone, with no partner, and I bear witness that Muhammad is His servant and messenger."
حدثنا يحيى بن آدم حدثنا ابن أبي زائدة عن داود بن أبي هند عن عمرو بن سعيد عن سعيد بن جبير
أن النبي ﷺ كلم رجلا في شيء فقال إن الحمد لله نحمده ونستعينه من يهده الله فلا مضل له ومن يضلل فلا هادي له وأشهد أن لا إله إلا الله وحده لا شريك له وأشهد أن محمدا عبده ورسوله
Its isnad is sahih, and this is part of the marriage sermon, as in the hadith of Ibn Masud in Musnad 3481. Nasai narrated it in 2:79, and Ibn Majah in 1:300, and it will come again at 3772.