The detainees were freed at the Karem Abu Salem crossing and transferred to hospital for medical checks, according to Hamas.