The former Manchester United striker has signed a deal until 2027.