It is narrated from Sayyiduna Ali (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) (used to supplicate).
Imam Ahmad (may Allah have mercy on him) said: It is narrated from Sayyiduna Ali (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) used to recite this supplication at the end of his witr: "O Allah, I seek refuge in Your pleasure from Your displeasure, and in Your pardon from Your punishment, and I seek refuge in You from You. I cannot count Your praise; You are as You have praised Yourself."