Hours after his return he appeared at a military parade to mark the country’s independence day. He arrived amid applause and tight security.
The country was plunged into political crisis after the shock televised resignation. Mr Hariri said he was protesting at meddling in Arab affairs by Iran and its Lebanese ally, Hezbollah, which forms part of the coalition government.
His resignation sparked speculation that he was forced to do it by his Saudi backers, who are feuding with Iran for influence in the region.
But President Michel Aoun had said that he would not accept the resignation until hearing from the prime minister personally. It was at a meeting between the two men today that Mr Hariri reversed his position.
He told reporters that he is putting his resignation on hold following a request from the president to reconsider.