A Reuters witness saw Netanyahu's convoy leaving the hospital, and shortly after midnight Netanyahu said on Twitter: "I am on my way home. Sure some rest and hot soup will put things right."
"The prime minister has completed a series of tests and will be released home tonight," a statement from Netanyahu's office said earlier, adding: "The tests showed a mild viral illness in the upper respiratory tract."
Netanyahu's illness has come at a stressful time for the right-wing four-times prime minister, who is under police investigation for corruption in three different cases.
Netanyahu denies any wrongdoing.
Netanyahu, 68, fell ill in mid-March and cancelled his public schedule for five consecutive days.
A security cabinet meeting scheduled for Wednesday will take place as planned, an Israeli official told Reuters. Defence Minister Avigdor Lieberman will fill in for Netanyahu if he is unable to attend.
In the two other cases police have already recommended that Netanyahu be charged with bribery. The final decision about whether to prosecute rests with the Israeli attorney general. That decision could be months away.
So far, partners in Netanyahu's governing coalition have stood by him, saying they are awaiting the attorney general's next moves. Political analysts say such support may erode if the investigations against Netanyahu intensify.
Surveys have shown that about half of Israelis believe the police over Netanyahu and think he should step down, while a third think he should remain in office. Support for Netanyahu's Likud party remains strong in opinion polls.
(Additional reporting by Eli Berlzon and Jeffrey Heller; writing by Maayan Lubell; Editing by Gareth Jones and James Dalgleish)
(Except for the headline, this story has not been edited by NDTV staff and is published 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.