Spartak Moscow, in a 2–0 win against Amkar Perm on 29 April 2018. For the rest of the 2017–18 season, Hanni spent coming on as a substitute for the remaining matches, as he made nine appearances and scoring two times in all competitions. However at start of the 2018–19 season, Hanni found himself placed on the substitute bench, due to a strong competitions within the midfield positions. This led to speculation over his future at Spartak Moscow. Amid the transfer speculation, Hanni made his first appearance of the season, starting a match before being substituted in the 65th minute, in a 1–0 win against Anzhi Makhachkala. By September, he soon received more playing time following the departure of Quincy Promes and started in a number of matches in the midfield position. Hanni played a role when he set up two goals between 26 September 2018 and 4 October 2018 against Chernomorets Novorossiysk and Villarreal. He then scored three goals in three separate competitions, scoring against Rangers, Anzhi Makhachkala and Krylia Sovetov Samara. For his performance, Hanni was named the league's best player of the month. He continued to play a role when he set up two goals, in a 2–1 win against Lokomotiv Moscow, followed up by scoring in a 1–1 draw against Ural Yekaterinburg in the first leg of the Russian Cup quarter–final. His performance against Lokomotiv Moscow earned him a spot for the league's Team of the Week. Towards the end of the 2018–19 season, Hanni continued to feature in the first team despite being on the sidelines on two occasions. At the end of the 2018–19 season, he went on to make twenty–seven appearances and scoring four times in all competitions. Ahead of the 2019–20 season, Hanni's future at Spartak Moscow became a subject from the Russian media once again. He responded to the claims, stating his desire to stay at the club on two separate statements. Hanni appeared as an unused substitute in the opening game of the season against PFC Sochi. Al-Gharafa On 22 July 2019, Al-Gharafa has signed Hanni for one season from Spartak Moscow. The move reported to have cost 6 million euros. The club's sporting director Tomas Zorn said Hanni left the club because he wanted to pursue first team football. Hanni quickly made an impact on his Al-Gharafa's debut, scoring and setting up two goals, in a 3–0 win against Al-Shahania