"You do not seem to have any previous experience that would have equipped you for what you apparently wanted to do," Justice Lasry said on Thursday.
"That may be a clear indicator of how misguided your state of mind was at the time."
At his plea hearing, Mohamed submitted he had been "brainwashed" or "radicalised".
Before he was arrested, Mohamed had resigned from his job, told his boss he was taking his terminally ill mother to her home country to die and booked a one-way ticket to Istanbul.
When he was stopped, he claimed he was travelling to Istanbul en route to Denmark to see his fiancee who was organising his ticket out of Turkey.
This, Justice Lasry said, along with the claim his mother was ill, was a lie.
Mohamed was found guilty by a Victorian Supreme Court jury of three counts of attempting to enter a foreign state for the purpose of engaging in hostile activities.
The main issue at the trial was whether or not it could be proven beyond reasonable doubt Mohamed was travelling to engage in hostile activities. During the trial, Mohamed claimed he was migrating "for the sake of God".
"The person who makes this migration, if it is successful, that all his sins behind him are wiped away," Mohamed said.
Justice Lasry said it was unclear exactly what Mohamed planned, but he would be sentenced on the basis he was going to Syria to fight on what he considered to be "the front line" and, if necessary, become a martyr.
He ordered Mohamed to serve a minimum of three and a half years.
The time Mohamed has spent in immigration detention since his arrest in January 2014 will count towards his sentence and he will be eligible for parole in July next year.
- AAP