Substitute Lenell John-Lewis scored in a game he wasn't widely expected to even take part in, and his late goal gave City victory over Barnet and boosted their survival hopes.
Lewis had ben widely tipped to be leaving the side after the FA Cup defeat at Bolton, but after coming on as a sub he snatched the win for City.
Barnet started brightly, but a Scott Kerr ball slipped Cian Hughton in for his second goal for the club.
City battled hard as Barnet looked to get back into the game and halt their recent slide.
Micah Hyde missed a clear header for Barnet before Ismail Yakubu's header did finally level things for the home side.
The Imps refused to give up however, and in injury time John-Lewis headed in Joe Anderson's cross to snatch the win.