Nawas bin Saman reported,

I heard the Messenger of Allah ﷺ say, "There is no heart that is not held between two of the fingers of the Most Merciful. If He wills, He keeps it upright, and if He wills, He causes it to deviate."The Messenger of Allah ﷺ used to say, "O Steadfast One of hearts, make our hearts steadfast upon Your religion."He said, "The scale is in the hand of the Most Merciful. He raises some peoples and lowers others until the Day of Resurrection."

Ibn Majah 199

Sahih

حدثنا هشام بن عمار حدثنا صدقة بن خالد حدثنا ابن جابر قال سمعت بسر بن عبيد الله يقول سمعت أبا إدريس الخولاني يقول حدثني

النواس بن سمعان الكلابي قال

سمعت رسول الله ﷺ يقول ما من قلب إلا بين إصبعين من أصابع الرحمن إن شاء أقامه وإن شاء أزاغه وكان رسول الله ﷺ يقول يا مثبت القلوب ثبت قلوبنا على دينك قال والميزان بيد الرحمن يرفع أقواما ويخفض آخرين إلى يوم القيامة

ابن ماجه 199صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
What the Jahmiyyah denied
Numbering
Darussalam 199
Ibn Majah 199