Fetching details from the dictionary...
will; testament; one's dying wish; one's last words
祖父が遺言を残した。
My grandfather left a will.
遺言の内容を家族で確認した。
The family reviewed the contents of the will.
遺言がなかったので遺産の分け方で揉めてしまった。
Since there was no will, there was a dispute over dividing the estate.