Religion is more in the domain of cultural evolution than people speaking directly to god. Islam is a continuation of Christianity and Judaism and you can trace that back even further.
Of course, fundamentalists -- as apparent from the name -- read things very literally and "speak" or "hear" directly from God.
What is prayer if not speaking directly to a deity?