Therefore all advices and knowledge that we seek and received, are simply to reform our heart purging it from all the vices so that when situation arises, you react . Because that is what most of us can do. We react. Our outward actions are plain manifestation of the inward state.
Ya ayuha allazina amanu, ittaqullah. O you who believe, have conciousness of Allah.
In order for to have taqwa or God conciousness, the heart has to be purge from all the vices. The house has to be cleaned before inviting someone over.
Therefore lets clean and wash our spiritual heart from anger, hatred, ostentation, jealousy, stinginess, blamingworthy modesty, negative thoughts and heedlessness.
Because the heart of the believer is a mirror which His divine attributes reflects.
We are not perfect. We were never meant to be. Dont lose hope. Because Allah says in Quran surah as shams (91)
Qad aflaha man zakkaha.
Indeed success are those who is purifying themselves.