Why did Jesus ask why have you forsaken me?
Jesus Christ was separated from God because He became sin for those who had sinned, even though Jesus never did a wrong thing. He was punished as if He broke all ten commandments even though He had never broken one single command of God. When forsaken by God, separated by the sin He substituted Himself for, having became sin for us… He clearly Identified what happened asking why have you forsaken (abandoned me spiritually and physically) but never lost His faith, God (for he asked), or in His work of saving the lost.
The Father of All, God raising from the dead...as proof He is the Author of Salvation to all those who obey Him, Hebrews 5:8-9 Though he were a Son, yet learned he obedience by the things which he suffered; 9 And being made perfect, he became the author of eternal salvation unto all them that obey him;
Jesus never did a wrong thing and offers you a way to be taught to never do a wrong thing again…and a way for all your wrongs to be forgiven and reconciled to God…that is good news…blessed are those who hunger and thirst after righteousness…for they will be filled.