Answer by taking a quote from the following article:

Nigel Ernest James Mansell, (; born 8 August 1953) is a British former racing driver who won both the Formula One World Championship (1992) and the CART Indy Car World Series (1993). Mansell was the reigning F1 champion when he moved over to CART, becoming the first person to win the CART title in his debut season, and making him the only person to hold both the World Drivers' Championship and the American open-wheel National Championship simultaneously. His career in Formula One spanned 15 seasons, with his final two full seasons of top-level racing being spent in the CART series. Mansell is the second most successful British Formula One driver of all time in terms of race wins with 31 victories, and is seventh overall on the Formula One race winners list behind Michael Schumacher, Lewis Hamilton, Alain Prost, Sebastian Vettel, Ayrton Senna and Fernando Alonso.

In 1994, after the CART season ended, Mansell returned to F1 and re-joined the Williams team. Since he had left it in 1993, the team had undergone some significant changes. Damon Hill had been promoted from test driver and was running full-time in one Renault. Prost, Mansell's replacement, won the 1993 Drivers' Championship and then retired after the season. This allowed Williams and Ayrton Senna to finally work out an agreement, and the team received a new sponsor in Rothmans International for a season in which they were expected to remain as champions. However, the car proved unreliable and tricky to handle early in the season; leading Senna to retire from the opening rounds despite claiming pole. In the third race at Imola tragedy struck as Senna was killed in a crash on the Tamburello curve. Mansell took over the car Senna was brought in to drive toward the end of the 1994 campaign. Mansell was paid approximately PS900,000 per race, compared to his teammate Hill being paid PS300,000 for the entire season. Mansell's return was helped by Bernie Ecclestone helping unravel his contracts in the United States. It was important for F1 to have a world champion driving that season and with worldwide TV viewing figures starting to decline, they needed Mansell. The 40-year-old was not as quick as Damon Hill in race trim but signs that his speeds were coming back were evident in Japan during a fantastic battle with the Ferrari of Jean Alesi. Mansell took his final Grand Prix victory in Adelaide, the last race of the season, having out-qualified the two title contenders at the time, Damon Hill and Michael Schumacher, in the process (helped out by the second qualifying session being held on a wet track, with the times from the first session making up the grid). The plan initially was for Mansell to protect Hill from Schumacher, but both drivers passed him at the start and eventually collided (causing the retirement of both), handing Schumacher his first world title. Williams had an option on Mansell's services for 1995 which Mansell was convinced they would take. Williams however, opted for youth over experience and hired David Coulthard.

So williams retired in 1994 from the injury?
In 1994, after the CART season ended, Mansell returned to F1 and re-joined the Williams team.