There is a website about fasting that claims that this quote has been found on an "Egyptian pyramid inscription" in "3800 BC". This makes it extremely dubious: at that time the Egyptians have not yet invented neither writing nor pyramids. But maybe that could just be a typo. Still I wonder.
Here is the link to the website: http://www.allaboutfasting.com/fasting-quotes.html
It is quite possible that this is completely made up but my concerns are that this has been quoted again by more influential sources such as the YouTube channel "What I've learned": https://youtu.be/PKfR6bAXr-c?t=10m31s.
Searching the sentence on google led me to the above mentioned site (the YouTube video is where I have seen the quote and the date bugged me, together with the content of the video but that's another topic). As for the other google results these consist of a facebook page and other webpages that I wouldn't consider as reliable sources.
I wouldn't think that ancient Egyptian would put aphorisms on their pyramid texts but rather more liturgical texts, although I am definitively not a expert in Egyptology.