It was narrated from Jabir bin Abdullah that the Messenger of Allah (ﷺ) said:
"Whoever dies leaving a will, he dies on the right path and Sunnah, and he dies with piety and witness, and he dies forgiven." (RU)
English reference (RU): Vol. 3, Book 22, Hadith 2701 (RU)
Arabic reference (RU): Book 22, Hadith 2805 (RU)