Sunan Ibn Majah, Volume 5, Book 37, Hadith 4241 (DarusSalam)

It was narrated that Jabir bin ‘Abdullah said: “The Messenger of Allah passed by a man who was praying on a rock, and he went towards Makkah and stayed a while, then he left and found the man still praying as he had been. He stood up and clasped his hands, then said: “O people, you should observe moderation,” three times, “for Allah does not get tired (of giving reward) but you get tired.”

حَدَّثَنَا عَمْرُو بْنُ رَافِعٍ، حَدَّثَنَا يَعْقُوبُ بْنُ عَبْدِ اللَّهِ الأَشْعَرِيُّ، عَنْ عِيسَى بْنِ جَارِيَةَ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، قَالَ ‏:‏ مَرَّ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ عَلَى رَجُلٍ يُصَلِّي عَلَى صَخْرَةٍ فَأَتَى نَاحِيَةَ مَكَّةَ فَمَكَثَ مَلِيًّا ثُمَّ انْصَرَفَ فَوَجَدَ الرَّجُلَ يُصَلِّي عَلَى حَالِهِ فَقَامَ فَجَمَعَ يَدَيْهِ ثُمَّ قَالَ ‏:‏ ‏"‏ يَا أَيُّهَا النَّاسُ عَلَيْكُمْ بِالْقَصْدِ ‏"‏ ‏.‏ ثَلاَثًا ‏:‏ ‏"‏ فَإِنَّ اللَّهَ لاَ يَمَلُّ حَتَّى تَمَلُّوا ‏"‏ ‏.‏

sunnah.com