Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said to me, "Have I not been told that you stand in prayer all night and fast all day?"I replied, "I do that."He said, "If you keep doing this, your eyes will sink and your soul will grow weary. Your soul has a right over you, and your family has a right over you. So fast and break your fast, pray and sleep."

Azami 2778

Sahih

عن عبد الله بن عمرو بن العاص

قال لي رسول الله ﷺ: ألم أخبر أنك تقوم الليل وتصوم النهار؟ قلت: إني أفعل ذلك. قال: فإنك إن فعلت ذلك هجمت عينك، ونفهت نفسك، وإن لنفسك حقا، ولأهلك حقا، فصم وأفطر، وقم ونم.

الأعظمي 2778صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Moderation in worship and the dislike of being excessive in it
Numbering
Jami al-Kamil 2778 (2nd edition)
Azami 2778