Wiktionary
great minds think alike
prov. Used to emphasize a coincidence, or two people reaching the same conclusion in any manner at the same time.