Police officers seized cannabis and a lock knife after a vehicle roused their suspicions.
Patrol officers spotted Yazan Almughrabi acting suspiciously inside a parked car in Jesmond Road, Bulwell.
When Almughrabi drove off, police stopped the vehicle in the next road, Kersall Drive.
They searched the car and found cannabis in the front seat foot well. Further quantities of the class B drug were found on Almughrabi himself.
A lock-knife and set of scales were also discovered inside the black Skoda Fabia.
Nottingham Crown Court heard the search took place on 4 September last year.
Quantities of cannabis with an estimated street value of £2,000 were seized along with two mobile phones. Analysis of the devices indicted Almughrabi was looking to sell the drugs.
Almughrabi, 26, of Jesmond Road, Bulwell, pleaded guilty to supplying a class B drug, possession of a controlled drug with intent to supply and possession of a bladed article.
He was sentenced to 16 months in prison.
Sergeant Asif Mohammed, of the Bulwell neighbourhood policing team, said: “This was an excellent example of officers trusting their instincts after spotting something that looked suspicious.
“Their keen eye resulted in a quantity of illegal drugs being taken off our streets and an offensive weapon being seized.
“We make no apology for our robust stance on tackling drug-related crime in our city. We know how detrimental and corrosive an impact that drug misuse can have on the most vulnerable in our communities, so we will continue to do all we can to seize these illicit substances, and take action against anybody found in possession of them.”