Sunan Ibn Majah
4241
Sahih+2

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.”

SahihAl-Albani
SahihMuhammad Fouad Abd al-Baqi