An Egyptian court has sentenced the head of the journalists' union and two board members to two years in prison and 10,000 pounds (around $650) fine for harboring two wanted journalists.

The ruling on Saturday against Yahia Qalash, head of Egypt's press union, and two others comes after a seven-month trial.

The case goes back to April when the security forces raided the syndicate building to arrest two journalists, who were wanted over protests against the president's decision to transfer Egyptian sovereignty over two strategic Red Sea Islands to Saudi Arabia.

The move infuriated journalists. They staged protests, demanded the interior minister's resignation, and a presidential apology. Instead, Qalash and two others were detained, questioned, and charged for giving shelter to two wanted men.