The police charged Mr Mohammed with four counts of dangerous driving, failing to obey traffic rules, driving without plate number and driving without side mirror.
In her ruling, Mariam Kings, sentenced Mr Muhammed after he pleaded guilty to the crime and begged the court for leniency.
Ms Kings, however, gave the convict an option to pay a fine of N8,000.
Earlier, the prosecution counsel, Aliyu Yakubu, told the court that the convict rode on an unregistered motorcycle and beat the traffic lights.
The offence, he said, contravened the provisions of sections 35, 18, 36 and 54 of the road traffic regulations.