Find the word definition

Wiktionary
put one's affairs in order

alt. To prepare for the end of one's life as one has lived it. vb. To prepare for the end of one's life as one has lived it.