They married and lived happily ever after.
happily ever after
idiomChiefly preceded by he, she, they, etc., lived: often used as a formulaic ending in fairy tales, stories for children, and similar works: in a state of happiness for the rest of his, her, their, etc., lives.
Origin
disputed originThe adverb is derived from happily (adverb) + ever after (adverb), used as a formulaic ending in works for children especially since the 19th century. The noun is derived from the adverb.
After they finally solved their problems, they moved to the countryside and lived happily ever after.
The story concludes with the weary travelers finding peace in their new home, where they lived happily ever after for the rest of their days.