It is narrated from Ibn Abbas (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) delivered a sermon one day and recited: “Indeed, all praise is for Allah, we seek help from Him and seek His forgiveness, and we seek guidance from Him, and we seek help from Him. And we seek refuge in Him from the evils of our souls and from our bad deeds. Whomever Allah guides, none can misguide him, and whomever He lets go astray, there is no guide for him. And I bear witness that there is no deity worthy of worship except Allah, and I bear witness that Muhammad (peace and blessings be upon him) is His servant and Messenger. Whoever obeys Allah and His Messenger has attained guidance, and whoever disobeys Allah and His Messenger (peace and blessings be upon him) has gone astray until he returns to the command of Allah.”
Hadith Referenceمسند الإمام الشافعي / كتاب الجمعة / 444
Hadith Takhrijصحيح من غير هذا الطريق، اخرجـہ مسلم، الجمعۃ، باب تخفيف الصلاة والخطبة (868)۔