This is mentioned in the Book of Numbers, specifically in Numbers 20:25-28. The account describes how Aaron died on Mount Hor and Eleazar was appointed to replace him.