Red Dwarf: Season 10, Episode 3
The posse find themselves marooned in 23 AD where they rescue a famous historical figure with a beard.