“Monks, when the eye arises, there is no place from which it comes; when it ceases, there is no place to which it goes. Thus, the eye, being not real, arises; having arisen it ceases completely. It is a result of previous action but it has no doer."
https://suttacentral.net/sa335/en/choong
"As to how to be seen: here all formed bases should be regarded as having no provenance and no destination. For they do not come from anywhere prior to their rise, nor do they go anywhere after their fall."
Visuddhimagga - CHAPTER XV The Bases and Elements
One difference between the two is that the āgama says the dhammas are unreal, whilst in the Visuddhimagga it states they are real whilst they persist.
6. As to how to be seen: here all formed bases should be regarded as having no provenance and no destination. For they do not come from anywhere prior to their rise, nor do they go anywhere after their fall. On the contrary, before their rise they had no individual essence, and after their fall their individual essences are completely dissolved. And they occur without mastery [being exercisable over them] since they exist in dependence on conditions and in between the past and the future. Hence they should be regarded as having no provenance and no destination.