U.S. stocks rallied in September’s final session, with the Standard & Poor’s 500 Index rising the most in three weeks, bringing traders some comfort as equities trimmed their worst quarterly decline since 2011.

The S&P 500 Index climbed 1.9 percent to 1,919.50 at 4 p.m. in New York, the most in three weeks after snapping a five-day losing streak Tuesday. The measure ended September down 2.7 percent.

The S&P 500 slumped 7 percent since the end of June, and posted its first back-to-back quarterly decline in four years. Energy and raw-material companies were the third quarter’s worst performers, plunging more than 17 percent amid concern that weakness in China will curb demand for commodities and crimp global growth.

Source: Bloomberg