It is narrated from Imam Sadeq (AS) who said:
The human being who is inflicted with forces of nature and is under pressure to pass water, has no views, and the one who is short-tempered has no friends, and the jealous person cannot find independence. The person, who does not consider the consequences of his /her actions, is not a wise human being. Considering the consequences of the actions/deeds will open the heart [1]. Meaning if we consider the consequences of our actions, we do not commit sins, we avoid mistakes both in personal and public life.
[1] Amaali, Sheikh Toosi (RA), Majlis 11, Page 301.
Source: en.shafaqna.com