Stocks rose to close out their best January in three decades as strong earnings and a Federal Reserve indicating it will pause rate hikes caused investors to rush back into the market following a vicious December sell-off.

The gain on Thursday was driven by better-than-expected earnings from a range of companies, including Facebook and General Electric. The gained 0.9 percent to close at 2,704.10 and the Nasdaq Composite outperformed, rising 1.37 percent to 7,281.74. The Dow Jones Industrial Average closed just below the flatline at 24,999.67.