思前想后

sīqián-xiǎnghòu
to consider past cause and future effect, to think over the past and future
HSK 79
Traditional思前想後

Additional Dictionary Meanings

to consider past cause and future effect (idiom); to think over the past and futureto ponder over reasons and connection