Anas bin Malik reported,

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."

Ibn Majah 237

Daif

حدثنا الحسين بن الحسن المروزي أنبأنا محمد بن أبي عدي حدثنا محمد بن أبي حميد حدثنا حفص بن عبيد الله بن أنس

عن أنس بن مالك قال

قال رسول الله ﷺ إن من الناس مفاتيح للخير مغاليق للشر وإن من الناس مفاتيح للشر مغاليق للخير فطوبى لمن جعل الله مفاتيح الخير على يديه وويل لمن جعل الله مفاتيح الشر على يديه

ابن ماجه 237ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
One who is a key to good
Numbering
Darussalam 237
Ibn Majah 237