The Lord is referring to the time between Israel’s entrance into the land and the period in which David lived, the time of the Judges. Throughout this time the people of Israel faced opposition from the nations around them with various nations attacking them and making their lives difficult (see Joshua 1—1 Samuel 31).
10 j'ai donné une demeure à mon peuple, à Israël, et je l'ai planté pour qu'il y soit fixé et ne soit plus agité, pour que les méchants ne l'oppriment plus comme auparavant