An iconic steam locomotive and former ‘rival’ of Flying Scotsman is set to take up a winter residency as guest at a heritage railway line.