In Fallout 4, your spouse is one of the few NPCs who can be saved. To do so, you must first find them and then speak to them. After that, you must choose to save them by selecting the "Save" option from the dialogue wheel.