The correct answer is: Muhammad was visited by the angel Gabriel and told to recite messages from Allah (God).
In 610 CE, while meditating in the cave of Hira outside Mecca, Muhammad received his first revelation from the angel Gabriel (Jibril in Arabic), marking the beginning of his prophetic mission and the revelations that would later be compiled into the Qur'an.