I’m not sure if it’s directly related but there is a sutta with the Buddha debating with the Niganthas/jains and they tell him that in their tradition, the body comes first, that’s why they stand all day to deplete their old kamma. The Buddha then responds with the mind being the forerunner in his tradition.
edit: I’ll try to find the sutta and post it here
edit2: found it
“Nigaṇṭha Nātaputta describes three kinds of rod for performing bad deeds: the physical rod, the verbal rod, and the mental rod.”
“But are these kinds of rod all distinct from each other?”
“Yes, each is quite distinct.”
“Of the three rods thus analyzed and differentiated, which rod does Nigaṇṭha Nātaputta describe as being the most blameworthy for performing bad deeds: the physical rod, the verbal rod, or the mental rod?”
“Nigaṇṭha Nātaputta describes the physical rod as being the most blameworthy for performing bad deeds, not so much the verbal rod or the mental rod.”
…
“Tapassī, the Realized One doesn’t usually speak in terms of ‘rods’. He usually speaks in terms of ‘deeds’.”
“Then how many kinds of deed do you describe for performing bad deeds?”
“I describe three kinds of deed for performing bad deeds: physical deeds, verbal deeds, and mental deeds.”
“But are these kinds of deed all distinct from each other?”
“Yes, each is quite distinct.”
“Of the three deeds thus analyzed and differentiated, which deed do you describe as being the most blameworthy for performing bad deeds: physical deeds, verbal deeds, or mental deeds?”
“I describe mental deeds as being the most blameworthy for performing bad deeds, not so much physical deeds or verbal deeds.”
SuttaCentral