Uh; I do NOT see Jesus PRAYING to these 'dead' men...
Luke 9:29-31
29 As he was praying, the appearance of his face changed, and his clothes became as bright as a flash of lightning.
30 Two men, Moses and Elijah, appeared in glorious splendor, talking with Jesus. 31 They spoke about his departure, which he was about to bring to fulfillment at Jerusalem.
Elsie, Luke 9 tells us that Jesus initiated the communication. As for the terminology “pray”, the proper definition means to address a request.