Multinational footwear and apparel company Nike, Inc. says all Satan Shoes at the center of a legal settlement are being voluntarily recalled.

The Brooklyn company that collaborated with rapper Lil Nas X to create the sneakers has agreed to buy back the shoes as part of a legal settlement.

The settlement with MSCHF Product Studio Inc. ends a trademark infringement lawsuit filed by Nike last week over the black-and-red devil-themed sneakers which featured the Nike "swoosh" logo and quickly sold out at $1,018 a pair.

Satan Shoes are customized Nike Air Max 97s. The soles contained a drop of human blood and were embossed with "Luke 10:18" - the Bible verse telling of Satan's fall from heaven.

"Having already achieved its artistic purpose, MSCHF recognized that settlement was the best way to allow it to put this lawsuit behind it so that it could dedicate its time to new artistic and expressive projects," a lawyer for MSCHF said in a statement to Fox News. 

According to MSCHF lawyers, the company made 666 pairs - 665 of which were sold and delivered to consumers before a temporary restraining order last week.

Nike said in its filing the shoes were detrimental to its reputation and caused confusion among consumers who mistakenly believed they were made by Nike.

Nike said MSCHF will refund those who bought its Satan and Jesus Shoes. The Jesus shows were sold in 2019. Nike said they had been "removed from circulation."

The shoes, which went on sale after Palm Sunday, were sold to coincide with the release of Lil Nas X's new song "Montero (Call Me By Your Name)." In the music video, the 21-year-old rapper attempts to seduce the devil.

Lil Nas X, who was not a respondent in the legal action, responded with a series of tweets including a "SpongeBob SquarePants" meme of a character begging for money captioned "me after the Nike lawsuit."