However in the final 1,000m Farah started to struggle as the 23-year-old Edris and compatriot Yomif Kejelcha really upped the pace.
Muktar Edris of Ethiopia does the 'Mobot' as Mohamed Farah of Great Britain looks on after crossing the finishline in the Men's 5000 Metres final during day nine of the 16th IAAF World Athletics Championships London 2017 at The London Stadium on August 12
Image credit: Getty Images
Farah just couldn't keep up with them and he was grimacing as he fought off Paul Chelimo from the United States to make sure he took silver.
In his last track race Farah quickly went to the front of the race in order to keep the pace with the dangerous Chelimo.
With nine laps to go Farah's fellow Brit Andrew Butchart briefly led with the pace slow as Edris and Cyrus Rutto made the moves to go up with Farah.
As the lap clock ticked down to seven, youngster Selemon Barega pushed up as he tried to increase what was a tepid pace.
As the group went through the 3,000m mark Australian Patrick Tiernan was the one who decided to change the pace and he opened up a little gap between Chelimo, Farah and the rest of the pack.
However he was easily caught as Edris started to press home his advantage.
"I gave it all but I had nothing left at the end," a crestfallen and emotional Farah said.
"It's been a long journey but it's been incredible. It doesn't quite sink in until you compete here and cross the line - I had a couple of minutes to myself - that this is it.
"To be honest with you it takes so much out of me. It's not an excuse, but it took a lot more out of me than I realised."