Edris timed his jump to perfection to take a well-deserved win, his first gold medal at the World Championships.
In what was his last major track appearance before retirement later this month, the 34-year-old finished with a time of 13 minutes 33.22 seconds - almost one second behind gold-winner Muktar Edris of Ethiopia.
In a tactical race, Farah could not respond to a challenge for the first time in six years, turning his farewell race on the track at a major championship into a disappointment.
In a thrilling finale featuring four athletes careering towards the line, Farah snatched back second place behind Edris, who clocked 13 minutes 32.79 seconds after a searing final lap of 52.6 seconds.
Yet even in defeat, Farah demonstrated his champion's spirit as he fought back in the dying metres when it looked as if he would be shut out of the medals completely. I would have loved to have seen Usain win but at this level no-one is going to give it you, no matter who you are.
"The 10,000m took a lot more out of me than I had realised".
"I have a few more races on the track and then I will take a short break and then this chapter of my life is closed".
In the end, it was a tremendous race as Edris, Farah, Paul Kipkemoi Chelimo and Yomif Kejelcha separated themselves from the field on the back straight of an exhilarating final lap.
"They worked as a team, the better man won".
But after the race, almost all of the attention went to Farah. "I feel happy that I ran with Mo Farah".
It is also about Kenya's bid to end 12-year gold drought in men's 5,000m, which Benjamin Kipkoech Limo last won in Helsinki, Finland, in 2005. He won the 5,000 and 10,000 meters double at the 2012 and 2016 Olympics, as well as the 2013 and 2015 World Championships.
The distance runner, Mo Farah also runs in his last track race the 5,000 metres final.