The phrase
"nesting instinct" refers to the natural and strong desire that some animals, including humans, have to prepare and create a safe, comfortable, and nurturing environment, often in anticipation of the arrival of a baby or the need for protection.
Full definition