Sunan Ibn Majah – Hadith No : 244

It was narrated from Sahl bin Sa’d that: The Messenger of Allah said: “This goodness contains many treasures, and for those there are keys. So glad tidings to the one whom Allah makes a key to good and a lock for evil, and woe to the one whom Allah makes a key to evil and a lock to good.”

Hadith In Arabic Text :

حدثنا هارون بن سعيد الأيلي أبو جعفر، حدثنا عبد الله بن وهب، أخبرني عبد الرحمن بن زيد بن أسلم، عن أبي حازم، عن سهل بن سعد، أن رسول الله صلى الله عليه وسلم قال ‏”‏ إن هذا الخير خزائن ولتلك الخزائن مفاتيح فطوبى لعبد جعله الله مفتاحا للخير مغلاقا للشر وويل لعبد جعله الله مفتاحا للشر مغلاقا للخير ‏”‏ ‏.‏

Chapter : The Book of the Sunnah – كتاب المقدمة