未卜先知

wèixiānzhī
(idiom) to foresee the future (without divination); to know beforehand through uncanny insight

CEDICT

to predict accurately; to foretell accurately

Wiktionary

形容先見之明

重編國語辭典

能夠事先知道預見未來

維基詞典

Entry Composition