The most relevant response to how we know that some galactic bodies have interacted with each other is:
Spallation caused particle exchange.
Spallation refers to the process where high-energy particles collide with a material, leading to the ejection of particles from that material. This can provide evidence of interactions between galactic bodies, such as through cosmic ray interactions and the examination of isotopic abundances resulting from those interactions.