The Tur wrote that the Rambam wrote [Chapter 2, Halacha 6] that if one slaughtered into a pit, it is forbidden to eat from his slaughtering until they investigate after him, lest he be a min. And the Rashba wrote: even though it is forbidden to do so, his slaughtering is not disqualified, for we do not remove a person from his status of fitness until he is investigated and found suspect. Thus far his words. And that which we learned in the Baraita, "he requires investigation after him," this refers to the future; and if it is found that he is a min, we shall forbid his slaughtering retroactively [Rashal and Shach and Bach, and also the opinion of Rashi is so, see there]. And such is the law regarding one who slaughters to seas and rivers in the previous siman [ibid.]. And there is one who says that retroactively it is never forbidden, and also only regarding a pit is investigation required, and not regarding the laws in the previous siman, because there it is actual idol worship and Israel are not suspected of such; but regarding a pit, it is only an act of sorcery, for they would divine in this manner to know future events like the practice of ov and yidoni, and there are those whose desire to know the future leads them to be suspected of this. Therefore, he requires investigation, and it follows that even if he is found suspect in this, one should not forbid his slaughtering for the past, and only for the future they should not allow him to slaughter, for this is not actual idol worship but rather a practice of fools which the Torah forbade [Kereti U-Peleti].
כתב הטור דהרמב"ם כתב [פ"ב הל' ו'] שאם שחט לתוך גומא אסור לאכול משחיטתו עד שיבדקו אחריו שמא מין הוא והרשב"א כתב אע"פ שאסור לעשותו אין שחיטתו פסולה שאין מוציאין את האדם מחזקת כשרות עד שיבדוק וימצא חשוד עכ"ל וזה ששנינו בברייתא צריך בדיקה אחריו זהו על להבא ואם ימצא שהוא מין נאסור שחיטתו למפרע [רש"ל וש"ך וב"ח וגם דעת רש"י כן הוא ע"ש] וכן הדין בשוחט לימים ונהרות שבסי' הקודם [שם] ויש מי שאומר דלמפרע לא נאסר לעולם וגם רק בגומא צריך בדיקה ולא בדינים שבסי' הקודם לפי שבשם הוי עבודה ממש ולא נחשדו ישראל על כך אבל בגומא היא רק מעשה כישוף שהיו מנחשים בעניין זה לידע עתידות כמעשה אוב וידעוני ויש שמתאוותם לידע העתידות נחשדו על כך ולפיכך צריך בדיקה וממילא דאפילו נמצא חשוד בכך אין לאסור שחיטתו לעבר ורק להבא לא יניחוהו לשחוט שאין זה עבודה ממש אלא מעשה כסילים שהתורה אסרתן [כרו"פ]: