It is narrated from Sayyiduna Sahl bin Sa'd (may Allah be pleased with him) that he narrated this hadith as marfu' (attributed) to the Messenger of Allah (peace and blessings be upon him), that he (peace and blessings be upon him) said: "With Allah Almighty are the treasuries of good and evil, and their keys are people. So glad tidings for the one whom You have made a key to good and a lock to evil, and woe to the one whom You have made a lock to good and a key to evil."
This chain is da'if (weak): Abd al-Rahman bin Zayd bin Aslam al-Madani was declared weak by Imam Ahmad, Ibn Ma'in, Ibn al-Madini and Imam al-Nasa'i (may Allah have mercy on them); Imam al-Hakim (may Allah have mercy on him) said that he narrates fabricated hadith from his father; and Allamah Ibn al-Jawzi (may Allah have mercy on him) mentioned the consensus of the imams that this narrator is weak.
Imam Ibn Majah (may Allah have mercy on him) recorded it in his Sunan through the chain of Abdullah bin Wahb from Abd al-Rahman bin Zayd bin Aslam, and he mentioned it without his (peace and blessings be upon him) words: "With Allah are the treasuries of good and evil, and their keys are people."
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب العلم / 374
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«هذا إسناد ضعيف؟ عبد الرحمن بن زيد بن أسلم المدني ضعفه أحمد وابن معين وابن المديني والنسائي، وقال الحاكم: يروي عن أبيه أحاديث موضوعة» «أخرجه سنن ابن ماجه برقم: 238، وأخرجه المعجم الكبير للطبراني برقم: 5812، 5956»