I know about Hebrewbooks.org for searching for sources in books, but the problem is you have to get to let's say every Masechta to look for a phrase. Is there a program (doesn't have to be free) that lets you search for Gemara, Zohars, Rishonim, Aharonim, Roseh Yeshivot, Pesukim etc. and gives you all the sources for them?
The Bar-Ilan Responsa project has an online version that allows free searches, displaying up to 150 words from each result. This is an extremely powerful program, as its textbase is "clean" and edited, as opposed to many other search programs (such as Hebrewbooks and Otzar HaChochma) which are mostly based on error-prone, OCR-derived text.
At <http://www.hebrewbooks.org> there is a search feature where you can type in the phrase and it at times will lead you to the thing you are searching for. It is the box on the left of title.
Sefaria.org matches the description you gave, and it is free of charge. As of 2018, their searchable database contains over 143 million words, ranging from Zohar to Shev Shamtsa with abundant cross referencing.
From their website:
Sefaria is a non-profit organization dedicated to building the future of Jewish learning in an open and participatory way. We are assembling a free living library of Jewish texts and their interconnections, in Hebrew and in translation. With these digital texts, we can create new, interactive interfaces for Web, tablet and mobile, allowing more people to engage with the textual treasures of our tradition.