Yucatán has one of the best-known origin stories in place-name lore, and nobody has shown that it is true. In the story, Spaniards asked what the land was called, and the people answered that they did not understand.
The first Spanish expedition to reach the peninsula was led by Francisco Hernández de Córdoba in 1517. Britannica says he found its east coast that February, on a slave-hunting voyage. Wikipedia dates the landfall to 1 March 1517.
Early writers explained the name in several ways, and they do not agree. Wikipedia credits the "I do not understand" version to the friar Toribio de Benavente, known as Motolinía. He wrote that the people replied "Tectetán, Tectetán," and the Spaniards turned that into the name of the land. He said the same thing happened at Cape Cotoch, where cotoch means "house."
The Yucatán Times, drawing on the historian J. Victoria Ojeda, gives the "tectetan" account to Francisco López de Gómara in 1552. It adds that Diego de Landa, in 1566, reported the reply "ciuthan," roughly "to say" or "to speak." A Maya chronicle, the Chac Xulub Chac, credits the story to Francisco de Montejo, with the reply "Ma'anaatik ka t'ann." That phrase is now the most popular version.
Other explanations skip the misunderstanding. One has the Maya saying "uh yu ka t'ann," "hear how they talk." Bernal Díaz del Castillo said "Yucatá" meant "land of yucas," the cassava plant that was an important Maya food. Wiktionary records the phrase story as coming from Tabasco Chontal, or Yokot'an.
The Yucatán Times concludes that doubt remains about which word or phrase produced the name. That is the fair verdict. The story is old, reaching back to 16th-century chroniclers, but no one has confirmed it.
The Maya had their own name for the land. They called it Mayab, which means "flat" in Yucatec Maya. According to Wikipedia, that word is also where "Maya" comes from.