The creator and executive producer of the musical series had it all planned out before the actor died in July this year.
Back in July, Ryan Murphy gave an emotional eulogy at a private memorial service for Cory Monteith. In his words, the TV producer revealed how "Glee" was supposed to end had the actor live today.
"For me, Cory was both the beginning and the ending of Glee, literally," Murphy said. "The first scene of the pilot was Cory's Finn and Matt [Morrison]'s Mr. Schu. None of us really knew what we were doing. Glee was a musical, musicals had never worked on television, and we were figuring it out as we went along. At the end of his first take, Cory could see I, his director, was a little unsure. He came up to me with a big grin and said, 'This is going to be fun.' He was terribly right, and terribly wrong."
He continued, "The ending of Glee is something I have never shared with anyone, but I always knew it. I've always relied on it as a source of comfort, a North Star. At the end of season 6, Lea [Michele]'s Rachel was going to have become a big Broadway star, the role she was born to play. Finn was going to have become a teacher, settled down happily in Ohio, at peace with his choice and no longer feeling like a Lima loser. The very last line of dialogue was to be this: Rachel comes back to Ohio, fulfilled and yet not, and walks into Finn's glee club. 'What are you doing here?' he would ask. 'I'm home,' she would reply. Fade out. The end."
Monteith died in July due to lethal combination of alcohol and heroin. "Glee" aired a tribute episode titled "The Quarterback" in October, in which Monteith's real-life girlfriend Lea Michele gave a touching rendition of "Make You Feel My Love". Murphy had also announced before Monteith's death that the show would end after season 6.