NEW YORK — The stock market had another late-day slide, this time because of fears that the Gulf oil spill will threaten BP’s dividend and perhaps land the company in bankruptcy court.

The Dow Jones industrials, up about 125 points late Wednesday morning, closed down 41. Most selling came in the last hour, the third time in four days that stocks had a late-day drop.

Investors got a “sell” signal from news reports that raised the possibility of worsening financial fallout from the oil spill. A group of about 30 U.S. lawmakers sent a letter to BP CEO Tony Hayward asking him to halt dividend payments and advertising until the leaking well is capped and the spill is cleaned up. Investors tend to sell any time a company’s dividend appears to be in jeopardy. BP is scheduled to make a $2.63 billion payout on June 21.

Meanwhile, quoted an analyst as saying BP could be forced to seek bankruptcy protection within about a month.

The worries about BP were enough to make investors shrug off reassuring words about the economy early in the day from Federal Reserve Chairman Ben Bernanke. BP shares fell 15.8 percent to a 14-year low, and the selling spread to other energy companies. Shares of Anadarko Petroleum Corp., a part-owner of the rig that caused the spill, dropped 18.6 percent.

The slide in energy stocks halted the market’s upward momentum, said Peter Boockvar, equity strategist at Miller Tabak.

“The oil stocks are getting killed. They’re widely owned so anytime you see that kind of activity it makes people nervous,” Boockvar said.

The drop came a day after the Dow climbed 123 points because of easing concerns that the economy would fall back into recession. The confidence extended into the first part of trading Wednesday, lifting the Dow back above 10,000, after Bernanke said debt problems in Europe might only amount to a “modest” drag on the U.S. economy if the financial markets can halt their slide.

He told the House Budget Committee that the economy is getting better but that job growth is likely to remain weak. The enthusiasm over his testimony faded after speculation arose that BP might not be able to recover from the oil spill.

Many traders have been anxious since last month that problems from the Gulf spill to spending cuts in Europe would slow the economic recovery. The concerns have pounded U.S. stocks since they set 2010 highs in late April. They are down more than 10 percent since then, a drop that’s known as a “correction.”

David Chalupnik, head of equities at First American Funds in Minneapolis, said it’s most likely that Bernanke is right that the economy will continue to recover but that trading will remain choppy. He said traders won’t get a better sense about how the economy is holding up until July, when earnings reports and more economic numbers come out.

The Dow fell 40.73, or 0.4 percent, to 9,899.25 after trading as high as 10,065.14. It is down 1,306 points, or 11.7 percent, from its 2010 high of 11,205, reached April 26.

The Standard & Poor’s 500 index fell 6.31, or 0.6 percent, to 1,055.69, while the Nasdaq composite index fell 11.72, or 0.5 percent, to 2,158.85.

Despite the drop in major indexes, advancing stocks narrowly outpaced those that fell on the New York Stock Exchange. Consolidated trading volume fell to 6.2 billion shares from 6.3 billion Tuesday.

The late selling sent traders back into the safety of Treasurys. That pushed interest rates lower. The yield on the benchmark 10-year Treasury note slipped to 3.18 percent from 3.19 percent late Tuesday.

Gold prices retreated Wednesday after setting a record high a day earlier. Gold fell $15.70 to $1,229.90 an ounce. It had risen as high as $1,254.40 an ounce on Tuesday.

Crude oil rose $2.39, or 3.3 percent, to $74.38 per barrel on the New York Mercantile Exchange.