The Torah mentions, after the story of Yaakov getting injured in Parshas Vayishlach, that we do not eat the Gid Hanashe for this reason.
The Meforshim seem to concur that this mitzvah was included in Moshe's kabbalas hatorah on Har Sinai, but the Torah never specifically mentions that Moshe ever told anyone about it like he did all the other mitzvos. Did Moshe give it over and the Torah just neglects to mention it, or did he for some reason not need to tell the rest of the nation?