21 So the LORD God caused the man to fall into a deep sleep; and while he was sleeping, he took one of the man’s ribsa and then closed up the place with flesh.

Read Genesis 2:21 Using Other Translations

And the LORD God caused a deep sleep to fall upon Adam, and he slept: and he took one of his ribs, and closed up the flesh instead thereof;
So the LORD God caused a deep sleep to fall upon the man, and while he slept took one of his ribs and closed up its place with flesh.
So the LORD God caused the man to fall into a deep sleep. While the man slept, the LORD God took out one of the man’s ribs and closed up the opening.