12 people, including at least 2 Mexican tourists, were accidentally killed and 10 more were injured by Egyptian security forces near the Bahariya oasis on Sunday.
They were found guilty of spreading 'false news'.
Mohamed Fahmy, a Canadian-Egyptian, and Baher Mohamed, an Egyptian, were both in court as the sentence was read.
Peter Greste, an Australian who was deported earlier this year was sentenced in absentia.
Useful Resource: AP article on Judge's reasoning for the verdicts
The car bomb was detonated early on Thursday morning in the outskirts of the Egyptian capital - 6 police officers were injured and the assailant fled the scene according to the government.
ISIS affiliate, Sinai Province, has claimed responsibility.
President Abdul Fattah al-Sisi has approved laws that restrict the media's ability to report independently on terrorist attacks or on military operations targeting supposed terrorists.
More details: Al Jazeera report