Do your duty, don’t cling to results
Karmanye vadhikaraste ma phaleshu kadachana” (BG 2.47)
Our thoughts lead to actions and action bring results and every result gets converted into individual experience (result +emotions/reactions). Journey of thoughts to experience creates memory, to be recalled again as an when a trigger is encountered. There is no escape to this phenomenon.
Therefore in the context of the saying "As you sow so you reap" the correlation is that the thought of intention to sow a seed, sowing a seed and helping the plant to grow until it bear useful fruits is the journey. Destination is expected result. Outcomes depends on the action taken during the course, either turns out to be useful fruit or plant dies in the process. It depends on our actions and awareness during the journey.
If we failed, we learn from it. Next time to go through the same journey, we have the option to change the thought process and course of actions especially in case of failure to deliver a useful fruit (desire or expectations) or come up with a better quality of fruit.
Any change in our thoughts, actions, and learn from experience as well as recall from memory would lead to a different outcome or vice-versa. Therefore, we can strive to be aware in the spiritual path to refrain from inauspicious deeds and adopt a path of self-control, creativity, empathy and austerity. This will helps to connect with our real nature and also control our outcomes.
Jai Maharaj Ji