Here's how Neo knew about Morpheus and Trinity before meeting them in The Matrix. When Neo is first removed from the artificial reality of The Matrix, he is greeted by an unfamiliar sci-fi dystopia, but he was already familiar with his would-be rescuers beforehand. Written and directed by the Wachowski siblings, The Matrix was released in 1999, the first of a trilogy that explored a future war between artificial intelligence and the captive humans that it uses as a power source. Neo is the prophesied One, who some believe is destined to free the humans from their simulated prison and lead an uprising against the Machines.
While those who are aware of its nature as a computer simulation are able to exploit it in various ways, the world inside the Matrix is, for the rest of its inhabitants, a functional recreation of the real world. Despite the fact that reality is by that time nearing the year 3000, the Matrix, after its numerous reboots, continues to be set in a facsimile of the 1990s. This world is all that Neo - then called Thomas Anderson - knows before his escape, but his connection to the proto-digital aspects of that society gave him glimpses of figures from the outside world before he was fully aware of its existence.
Like many of the inhabitants of Zion, both Morpheus and Trinity are "redpills," humans who had been living in the Matrix, but were awoken to its true nature and freed by the rebels. Trinity, in her original life and under her original name, was an infamous hacker whose claim to fame was infiltrating the systems of the IRS. Unknown to the average person, Anderson's connection to the underground computer hacking culture exposed him to some veneration of her legacy. Morpheus, on the other hand, was younger when he was extracted and so did not have time to build a reputation then. Instead, his notoriety comes from the reputation as a dangerous terrorist that he acquired later as he returned to the Matrix.
These origins aren't given much time in the films, but they provide an interesting perspective on Neo's closest allies. It is mentioned that Zion is reluctant to free people above a certain age from the Matrix, for fear of the shock that it would cause them. Even though an exception was made for Neo, this means that Trinity was likely very young when she was taken. As such, the renown her hacking exploits brought her at such an early age would have made her something of a child prodigy, a quality that the films fail to mention but which increases the depth of her character even while being left implicit.
The first descriptions of Morpheus that Neo hears are less flattering. Although the Machines likely enabled the depiction of Morpheus as a terrorist in order to undermine his attempts at gaining redpill followers, his actions and those of his cohorts as they attempt to rescue him from Agent Smith could very reasonably be said to fit that description. Even if the violence is justified within the overall logic of the film, it complicates how the audience views his unflinching commitment to his ideals.
As the later movies shifted their focus to the world outside of the Matrix and to Zion's stand against the Machines, some of the thematic emphasis on transcending reality was lost. But the complex roots that the protagonists left behind in the artificial world serve as a reminder that, despite the greater global stakes, for nearly all of humanity, the simulated world of The Matrix is all that they know, and what happens within it is extremely significant to them.