The pillars are within an act of worship. The prayer is not valid if any of the pillars is
not performed intentionally, out of ignorance, or forgetfully. Neither does the
prostration of forgetfulness make up for it; one should repeat a recent prayer in which
a pillar was left out. As for the previous prayers that one prayed without performing
all of the pillars, then one is excused for them since the Prophet صلى الله عليه وسلم did not ask his
companion to repeat all the previous prayers; rather, he asked him to repeat the
prayer he had just prayed even though he left off tranquility which is a pillar. Allah
knows best