http://ohr.edu/ask_db/ask_main.php/92/Q1/
...Wisdom and righteousness didn’t begin at Sinai. One need look no farther than the Chumash to see that Mankind had mitzvot and Divine wisdom before the giving of the Torah...
...it’s quite rational that academies always existed for the study of the seven Noachide laws and the prophetic wisdom of the time.
Therefore, Noah’s son Shem and Shem’s grandson Ever directed an academy in Be’er Sheva where these traditions were studied and upheld in the hope that they be passed on to future generations...
What did Adam know?