The accused, Muhammad Khairil Nawi, 23, pleaded guilty when the charge was read out to him before magistrate Raja Norshuziana Shakila Raja Mamat.
He was charged with voluntarily injuring Mohd Amin Md Nor, 38, with a knife at 6.30 am on Sunday (May 12) at Kampung Apal Mosque in Jerteh.
The court ordered the accused to serve the jail term from today.
Earlier, the accused, who was represented by lawyer Mohd Fakhrul Fikri Mokhtar from the National Legal Aid Foundation applied for a lenient sentence, saying that the accused was depressed and was hearing voices at the time of the incident.
Inspector Norkhaizan Ramli, prosecuting, however said the accused should be punished accordingly based on the seriousness of the offence.