“To put one’s house in order” is at least as old as the King James Bible. See this Wiktionary page https://en.m.wiktionary.org/wiki/put_one%27s_house_in_order . The “house” can refer to one’s personal financial affairs, relationships with others, making a will, and the like. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.