We were with the Messenger of Allah ﷺ on a military expedition. When we returned and came in sight of Madinah, the people raised their voices in a loud takbir.The Messenger of Allah ﷺ said, "Your Lord is neither deaf nor absent. He is between you and the heads of your mounts."Then he said, "Abdullah bin Qays, shall I not teach you a treasure from the treasures of Paradise? It is, 'There is no power and no strength except by Allah.'"
حدثنا محمد بن بشار حدثنا مرحوم بن عبد العزيز العطار حدثنا أبو نعامة السعدي عن أبي عثمان النهدي
كنا مع رسول الله ﷺ في غزاة فلما قفلنا أشرفنا على المدينة فكبر الناس تكبيرة ورفعوا بها أصواتهم فقال رسول الله ﷺ إن ربكم ليس بأصم ولا غائب هو بينكم وبين رءوس رحالكم ثم قال يا عبد الله بن قيس ألا أعلمك كنزا من كنوز الجنة لا حول ولا قوة إلا بالله
Agreed upon [by Bukhari and Muslim]. Bukhari reported it in "Al-Maghazi," the chapter on the Battle of Khaybar, hadith no. 4202, and Muslim, hadith no. 2704, from the hadith of Abu Uthman through this route. Nasai also reported it in "Amal al-Yawm wal-Layla," hadith no. 356, and in "Al-Kubra," hadith no. 10188, from the hadith of Marhum bin Abdul-Aziz through this route.