shares of American Express (AXP) up 1.9 percent at $57.49. The S&P consumer discretionary index (REU:^GSPDI) climbed 0.8 percent, with shares of Amazon.com (AMZN) up 1.9 percent at $245.74. During the session, Amazon's stock hit a lifetime intraday high of $246.87.
The Dow Jones industrial average (^DJI) rose 100.51 points, or 0.77 percent, to end at 13,157.97. The Standard & Poor's 500 Index (^GSPC) added 9.05 points, or 0.65 percent, to 1,411.13. The Nasdaq Composite Index (^IXIC) gained 16.39 points, or 0.54 percent, to close at 3,069.79.
Volume was the second lowest for a full day this year, with 4.6 billion shares trading on the New York Stock Exchange, the Nasdaq and the Amex. The year-to-date average is 6.6 billion.
The Dow also broke a six-week string of gains, losing 0.9 percent for the week. The Nasdaq slipped 0.2 percent for the week after posting five weeks of gains.
In a letter to a congressional oversight panel on Friday, Bernanke said, "There is scope for further action by the Federal Reserve to ease financial conditions and strengthen the recovery.
Early in the day, the S&P 500 briefly fell below the 1,400 level following cautious comments from German Chancellor Angela Merkel about Greece staying in the euro zone.
It was the first time in two weeks that the benchmark S&P 500 had dipped below 1,400.
"Intermediate-term, weekly indicators, tracking one- to two-quarter shifts are not yet overbought and, in theory, have potential to carry equities higher into the fall," said Robert Sluymer, an analyst at RBC Capital Markets LLC, in New York.