Yoga Sutras of Patanjali 4.23
द्रष्टृदृश्योपरक्तं चित्तं सर्वार्थम् ॥
drashtri-drishya-uparaktam chittam sarvartham
The mind, colored by both the seer and the seen, comprehends everything.
द्रष्टा और दृश्य से उपरक्त (रंगा हुआ) चित्त ही सर्वार्थ (सर्वज्ञ) होता है।