The French club have been in talks with Gent for some time over a deal for the 20-year-old Canadian international.
The fee could reach €32m if certain objectives are met and there will be a sell-on clause included.
Barring any late twists, David will visit Lille on Monday to undergo medical tests ahead of his contract signing.
In the 2019-20 season, David scored 23 goals in 40 appearances, leading to significant interest across Europe.
Lille busy in the market
However, the chances of a deal are slipping with Rangers not satisfied with Lille’s bid of around €15m.
Gomes, 19, left Manchester United at the end of his contract and has penned a five-year deal with Lille.
🔴 Le LOSC officialise aujourd’hui le recrutement d'Angel Gomes (19 ans). L’international U20 anglais évoluera cette saison sous le maillot du Boavista FC (Portugal) où il est prêté pour l’ensemble de la saison 2020-2021.#NewPlayerDetected #MercatoLOSC
— LOSC (@losclive) August 9, 2020