I'm presently translating one of the earliest sūtras to be translated into Chinese. It is called the Sūtra in Forty-Two Sections《四十二章經》, which is basically a collection of quotes from the Buddha neatly packaged as a single text. It actually reminds me of the Dhammapada in some ways. It is a Śrāvakayāna text.
I'm wondering if the following quote corresponds to anything in the Pali canon?
佛告沙門:慎無信汝意,意終不可信。慎無與色會,與色會即禍生。得阿羅漢道,乃可信汝意耳。
The Buddha told the monks, “Be careful not to trust your thoughts as those thoughts ultimately cannot be trusted. Be careful not to meet with physical desires, as meeting with physical desires will see misfortune born. It is only when you attain the path of the Arhat that you can trust your thoughts.”