Gospel of Thomas
The saying, without the explanation, is also found in the Gospel of Thomas saying 14.