The official said the man was sentenced Wednesday to death by firing squad at a military court in Gaza. He spoke on condition of anonymity because he was not allowed to speak with reporters.
Palestinians who collaborate with Israeli intelligence are widely loathed within Palestinian society.
The Palestinian Center for Human Rights' says Hamas has issued 36 death sentences since it seized Gaza from the rival Fatah party in 2007. About 15 executions have actually been carried out.