In 1898, 14 years before the Titanic sank, Morgan Robertson wrote a book about a ship called the “Titan” that crashed into an iceberg and sank.
The book is Futility or The Wreck of the Titan. In addition to having the same outcome (crashing into an iceberg and sinking, the fictional “Titan” and the real-life “Titanic” had other bizarre similarities. They were both over 800 feet long. They both were known as “unsinkable”. They both sunk in the North Atlantic. They both didn’t have enough lifeboats. They both had 3000 passengers.
There’s some big differences too. Most importantly, more people survived from the real Titanic than from the Titan.