Jesus taught that after he was taken to heaven to ask him for nothing, but rather to ask the Father Directly. This is in step with Jesus' teachings that the only person we are to pray to is the Father. He taught this directly in Matthew 6:6-9, saying "When you pray.... pray to the Father." Since Jesus never spoke of praying to himself, no one else ever spoke of praying to Jesus, then we can rightly conclude from Scripture that Jesus never said anything about praying to him.
There are verses where Jesus said to ask him for something while he was still with them (John 14:16,17) but these verses have nothing to do with prayer, but he confirmed that it isn't actually himself who would fulfill the request, but actually God the Father who was in him performing the miraculous works (John 12:12-14),
The idea about what Jesus taught concerning prayer is to ask the Father in the name of Jesus, not to ask Jesus. Jesus also taught about only asking the Father in Matthew 7:11.
Jesus taught to only ask the Father after he was taken to heaven:
John 16
23In that day you will no longer ask Me anything. Truly, truly, I tell you
, whatever you ask the Father in My name, He will give you. 24Until now you have not asked for anything in My name. Ask and you will receive, so that your joy may be complete.
25I have spoken these things to you in figures of speech. An hour is coming when I will no longer speak to you this way, but will tell you plainly about the Father.
26In that day you will ask in My name. I am not saying that I will ask the Father on your behalf. 27For the Father Himself loves you, because you have loved Me and have believed that I came from God.
28I came from the Father and entered the world. In turn, I will leave the world and go to the Father.”
Paul taught the same things about making our requests known to God, not Jesus.
Philippians 4
6Be anxious for nothing, but in everything, by prayer and petition, with thanksgiving,
present your requests to God.
7And the peace of God, which surpasses all understanding, will guard your hearts and your minds in Christ Jesus.
James taught that every good and perfect gift comes from the Father, not Jesus:
James 1
17Every good and perfect gift is from above,
coming down from the Father of the heavenly lights, with whom there is no change or shifting shadow.
All of this means that Jesus isn't God.