Alagui to move to Scottish Premiership club Partick Thistle on loan in January 2014, but El Alagui rubbished the speculation and reaffirmed his commitment to Brentford. What would be El Alagui's final appearance for the Bees came in a 3–1 victory over Milton Keynes Dons on 29 December, replacing Marcello Trotta after 81 minutes. El Alagui made 18 appearances and scored six goals during the 2013–14 season. He made 30 appearances and scored 9 goals during his two seasons with the club, his time with the Bees largely disrupted by his knee injury suffered in October 2012. Dundee United (loan) On 8 January 2014, El Alagui moved to Scottish Premiership club Dundee United on loan until the end of the 2013–14 season. He made his debut against Inverness CT in a 1–1 draw, after coming on as a substitute for the injured Brian Graham, on 12 January. El Alagui scored his first goal for the club, in a 1–1 draw with Partick Thistle on 1 February 2014. He finished the season having scored three goals in 15 appearances and, as he had been previously released by Brentford a week before his loan spell had finished, he left and became a free agent. Hibernian El Alagui signed a two-year contract with Scottish Championship club Hibernian in July 2014. He scored his first goal for the club on 9 August 2014, in a 2–1 home win against Livingston in the opening league match of the season. He scored again in the following match, the Edinburgh derby against Hearts on 17 August 2014, although it was only a consolation goal as Hibernian lost 2–1. On 30 August 2014, El Alagui had to go off injured in the first half as Hibernian lost 2–1 against Alloa Athletic, with the club fearing he had a ruptured an achilles' tendon. He then had surgery on the injury and it was expected he would be out for four to six months. On his return from injury, El Alagui came on as a substitute in an Edinburgh derby against Hearts. He scored in the dying minutes to wrap up a 2–0 victory for Hibernian. Complications from the earlier surgery meant that El Alagui did not play for Hibs during the early part of the 2015–16 season, and at the end of his contract he was released by the club. Subsequently, El Alagui appeared as a trialist for Inverness