The Prophet ﷺ used to say, "O Allah, I seek refuge in You from reprehensible character, deeds, and desires."
حدثنا سفيان بن وكيع حدثنا أحمد بن بشير وأبو أسامة عن مسعر
كان النبي ﷺ يقول اللهم إني أعوذ بك من منكرات الأخلاق والأعمال والأهواء
No references are available.
[Sahih] Tabarani also narrated it in 19/19, no. 36, from the hadith of Abu Usama through the same route, and he explicitly stated the hearing. Ibn Hibban graded it sahih, no. 2422, and Hakim graded it as meeting the conditions of Muslim, 1/532, and Dhahabi agreed with him.