It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) used to say in the sermon of need (khutbat al-hajah): "All praise is for Allah; we seek His help and we seek His forgiveness, and we seek refuge in Allah from the evils of our own selves. Whomever Allah guides, none can lead astray, and whomever He leads astray, none can guide. I bear witness that there is no true god but Allah, and I bear witness that Muhammad (peace and blessings be upon him) is His servant and Messenger. Whoever obeys Allah and His Messenger is rightly guided, and whoever disobeys them both harms only himself, and he cannot harm Allah in the least."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10453