The Lebanese army on Thursday received a soldier who had been detained by Israel on Sunday, the army said in a post on X.
Israel had said on Tuesday it would release five Lebanese held by its military in a "gesture to the Lebanese president".
"Four Lebanese detainees held by Israel during the last war were released, and today the fifth detainee was released, as a result of indirect negotiations," said Lebanon's President Joseph Aoun in a cabinet meeting, the presidency posted on X.
The army said the soldier was returned through the International Committee of the Red Cross and was transferred to a hospital for treatment.
While the army did not identify the person released, it said on Sunday it had lost contact with one of its soldiers after he was shot while wearing civilian clothes by Israeli forces near the border in southern Lebanon and then was taken into Israel.
The Israeli military said that on Sunday its troops fired at a suspect who approached the Lebanon border and then evacuated him to hospital for medical treatment.
Lebanon received on Tuesday four Lebanese who had been detained by Israeli forces during the war. The four were not identified as soldiers.
Israel and Lebanon struck a truce deal brokered by Washington in November that ended more than a year of conflict between Israel's military and Lebanese armed group Hezbollah that was playing out in parallel with the Gaza war.