Darryl Williams, 23, pleaded guilty to the offence which happened in the village of Denholm earlier this year.
Prosecutor Chelsea Martin told Jedburgh Sheriff Court how police officers stopped his vehicle and could detect a strong smell of cannabis. They searched the vehicle where they found £300 in cash in a pocket and £760 in a wallet as well as 23 grammes of cannabis from the glove box.
Williams was taken to Galashiels Police Station and officers attended at his home where they found another 60 grammes of cannabis within a bedroom.
Ms Martin said the drugs recovered from the car and house had an estimated street value of £830.
Williams was also found to be banned from driving.
He pleaded guilty to charges of driving while disqualified and being concerned in the supply of a controlled drug.
Sheriff Peter Anderson imposed a Community Pay Back order involving 160 hours of unpaid work and banned him from driving for another 18 months.