Yoda was first introduced to Star Wars audiences ... Revenge of the Sith 18. “Death is a natural part of life. Rejoice for those around you who transform into the Force. Mourn them, do not.
It's not clear exactly how Yoda used the Force to create a lightning strike, but the fact that he could do so after his death ...