PEARL HARBOR, Hawaii — Seventy-five years after Imperial Japanese warplanes destroyed the Pacific fleet here and drew the United States into World War II, Prime Minister Shinzo Abe of Japan on Tuesday stood next to President Obama at the site of the attack and offered repentance but did not apologize.

“I offer my sincere and everlasting condolences to the souls of those who lost their lives here, as well as to the spirits of all the brave men and women whose lives were taken by a war that commenced in this very place, and also to the souls of the countless innocent people who became victims of the war,” Mr. Abe said.

He added, “We must never repeat the horrors of war again.”

For his part, Mr. Obama described in detail what occurred on the day of the attack, highlighted acts of heroism by American service members and said that the visit of Mr. Abe “reminds us of what is possible between nations and between peoples.’’

Mr. Obama added, in what seemed a warning after the scorching American presidential campaign: “Even when hatred burns hottest and the tug of tribalism is at the most primal, we must resist the urge to turn in. We must resist the urge to demonize those who are different. The sacrifice made here, the angst of war, reminds us to seek the divine spark that is common to all humanity.”