Assalam alaikum,
Contentment with the Decree of Allah Subhanahu Wa Ta'ala (Ridaa) is one of the acts of worship of the Heart. The Prophet, Sallallahu alaihi Wasallama, said:-
'' HE HAS TASTED THE SWEETNESS OF FAITH: HE WHO IS CONTENT WITH ALLAH AS HIS LORD,
ISLAM AS HIS RELIGION, AND MUHAMMAD AS HIS PROPHET''. [ Muslim ]
We therefore need to know that God Almighty has provided for us (for each one) our provision. As long as we work, we get what is written for us. In this regard, he, Sallallahu alaihi Wasallama, said:--
'' KNOW THAT EVEN IF THE WHOLE OF COMMUNITY WERE TO GATHER TOGETHER TO BENEFIT WITH SOMETHING,
THEY WOULD NOT BENEFIT YOU WITH ANYTHING EXCEPT THAT WHICH ALLAH HAS ALREADY RECORDED FOR YOU,
AND THAT IF THEY GATHER TOGETHER TO HARM YOU WITH SOMETHING, THEY WOULD NOT BE ABLE TO HARM YOU
WITH ANYTHING EXCEPT THAT WHICH ALLAH HAS ALREADY RECORDED AGAINST YOU''. [ Tirmidhi ]
Simply possessing the knowledge should empower us, because we thereby know that everything that happens is by the prmission of God Almighty. This should not prevent us from reflecting and trying to figure out how our actions played a role, but learning from an experience is part of Contentment because you trust that God Almighty is teaching you a lesson through trial.