As we all know, Abraham had two descendants, Yishmael and Yitschak. Yitschak also had two descendants, Esav and Yaakob; however only the children of Yaakob were the nation that was chosen for the Torah, and Abraham is considered the starter of that nation.
Some may say that Yishmael lost eligibility for the Torah as he was “Pere Adam”: “וְה֤וּא יִהְיֶה֙ פֶּ֣רֶא אָדָ֔ם יָד֣וֹ בַכֹּ֔ל וְיַ֥ד כֹּ֖ל בּ֑וֹ וְעַל־פְּנֵ֥י כׇל־אֶחָ֖יו יִשְׁכֹּֽן׃”.
Now for Esav, people say that he wasn’t eligible for the Torah, as he tried to kill Yaakob; however, Shimon and Levi when to massacre the village of Shechem, and they were still allowed to receive the Torah.
Why wasn’t the Torah given to all of the descendants of Abraham? More importantly, why was the Torah specifically not given to the descendants of Esav?