Hariri made his announcement after returning to Beirut for the first time since he quit abruptly in a Nov. 4 broadcast from Saudi Arabia.
At the presidential palace near Beirut, Hariri said he hoped this move would open "a new gateway for a responsible dialogue...that deals with divisive issues and their repercussions on Lebanon's relations with Arab brothers."
"I presented today my resignation to President Aoun and he urged me to wait before offering it and to hold onto it for more dialogue about its reasons and political background, and I showed responsiveness," he said in a televised statement.
Hariri said all Lebanese must commit to keeping the country out of regional conflicts, a reference to the powerful, Iran-backed Hezbollah whose regional military role has alarmed Saudi Arabia.
Lebanese state officials and senior politicians close to Hariri have said Riyadh forced Hariri to quit and held him in the kingdom, which Saudi Arabia and Hariri have denied.
The resignation shocked even Hariri's aides. His return to Lebanon, late on Tuesday night, followed an intervention by France.
Aoun, a political ally of Hezbollah, had refused to accept the resignation on the grounds that Hariri declared it from abroad in "mysterious circumstances". Aoun had said this was not in line with constitutional norms and described Hariri as a hostage in Riyadh.
Hariri thanked Aoun on Wednesday for what he described as his determination to protect Lebanon's stability, his respect for its constitution, and "his rejection of departing from it under any circumstances".
The resignation pitched Lebanon to the forefront of the regional rivalry between Sunni Muslim Saudi Arabia and Shi'ite Islamist Iran, which backs Hezbollah.
A long-time Saudi ally, Hariri had cited fear of assassination in his resignation speech, and attacked Iran and its Lebanese ally Hezbollah for sowing strife in the Arab world.
His resignation was followed by a steep escalation in Saudi statements against the Lebanese government, which includes Hezbollah. Riyadh said the Lebanese government as a whole - not just Hezbollah - had declared war against it.
Western governments including the United States struck a different tone, affirming their support for Hariri and Lebanon and the stability of the country, which is hosting 1.5 million Syrian refugees - nearly one-in-four of the population.
PRESERVING LEBANESE "COEXISTENCE"
Hezbollah leader Sayyed Hassan Nasrallah, who had also called for Hariri's return, said on Monday his group was open to "any dialogue and any discussion". Nasrallah also issued his clearest denial yet of any Hezbollah role in Yemen.
A government minister from the United Arab Emirates (UAE), a close ally of Saudi Arabia, said Lebanon must implement its policy of staying out of Middle East conflicts in order to start getting out of its crisis and regional ones.
"The main problem facing that is the selective implementation of (this) principle and the functional Iranian role of Hezbollah outside the Lebanese framework," Anwar Gargash, UAE minister of state for foreign affairs, wrote on Twitter.
Hariri arrived in Beirut in time to attend independence day celebrations on Wednesday morning, taking the prime minister's seat alongside Aoun and Parliament Speaker Nabih Berri.
After his announcement, Hariri supporters marched through central Beirut, chanting "Saad" and waving the blue flag of his Future Movement political party.
A convoy of honking cars, some painted blue and others plastered with pictures of Hariri, zipped through the streets.
Dozens also gathered at his house, near the government headquarters in Beirut, to welcome him back. Amid a sea of blue Future flags and Lebanese flags, some held the flag of Saudi Arabia.
Hariri said he looked forward to "real partnership with all the political powers, in placing Lebanon's interests high above any other interests" and preserving coexistence among Lebanese.
(Additional reporting by Lisa Barrington, Tom Perry and Sarah Dadouch; writing by Tom Perry; Editing by Matthew Mpoke Bigg, William Maclean)
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.