The Messenger of Allah ﷺ said, "Among people are some who are keys to good and locks against evil, and among people are some who are keys to evil and locks against good. Blessed is the one whom Allah has made a key to good, and woe to the one whom Allah has made a key to evil."
حدثنا الحسين بن الحسن المروزي أنبأنا محمد بن أبي عدي حدثنا محمد بن أبي حميد حدثنا حفص بن عبيد الله بن أنس
قال رسول الله ﷺ إن من الناس مفاتيح للخير مغاليق للشر وإن من الناس مفاتيح للشر مغاليق للخير فطوبى لمن جعل الله مفاتيح الخير على يديه وويل لمن جعل الله مفاتيح الشر على يديه
No references are available.
[Its chain is daif] Ibn Abu Asim reported it, with variation in the chain. Muhammad bin Abu Humayd is daif, and the hadith has daif routes narrated by Ibn Abu Asim and others.