A shirt worn by football legend Pelé during Brazil's first World Cup victory in 1958 was sold at a public auction in New York on Thursday for $4.9 million, according to Sotheby's auction house.

The player, then 17 years old, scored two of Brazil's five goals against host Sweden (5-2), after a 5-2 victory over France in the semifinal.

Pelé, whose real name is Edson Arantes do Nascimento, had given the shirt to his teammate and friend Dida during the 1958 final.

The shirt remained in Dida's family's possession for decades before being displayed in a museum, then was offered at auction for the first time in 2004 for an undisclosed price.

After being sold following ten bids from five bidders to an anonymous buyer, the shirt became the second most expensive shirt in the world, according to Sotheby's.

The record of $9.3 million is still held by the shirt of Argentine Diego Armando Maradona, worn on June 22, 1986, in Mexico City during the legendary quarterfinal match against England.

Argentina won the match 2-1 thanks to two legendary goals by Maradona: one with his hand, later called the 'Hand of God', and the second after a series of dazzling dribbles.