Let me remind you of Sura 18, ayat (verses) 65–82 Al Kahf,
>Moses promises to be patient and obey him unquestioningly, and they set out together. After they board a ship, the Servant of God damages the vessel. Forgetting his oath, Moses says, "Have you made a hole in it to drown its inmates? Certainly you have done a grievous thing." The Servant reminds Moses of his warning, "Did I not say that you will not be able to have patience with me?" and Moses pleads not to be rebuked.
>Next, the Servant of God kills a young man. Moses again cries out in astonishment and dismay, and again the Servant reminds Moses of his warning, and Moses promises that he will not violate his oath again, and that if he does he will excuse himself from the Servant's presence. They then proceed to a town where they are denied hospitality. This time, instead of harming anyone or anything, the Servant of God restores a decrepit wall in the village. Yet again Moses is amazed and violates his oath for the third and last time, asking why the Servant did not at least exact "some recompense for it."
>The Servant of God replies, "This shall be separation between me and you; now I will inform you of the significance of that with which you could not have patience. Many acts which seem to be evil, malicious or somber, actually are merciful. The boat was damaged to prevent its owners from falling into the hands of a king who seized every boat by force. And as for the boy, his parents were believers and we feared lest he should make disobedience and ingratitude to come upon them. God will replace the child with one better in purity, affection and obedience. As for the restored wall, the Servant explained that underneath the wall was a treasure belonging to two helpless orphans whose father was a righteous man. As God's envoy, the Servant restored the wall, showing God's kindness by rewarding the piety of the orphans' father, and so that when the wall becomes weak again and collapses, the orphans will be older and stronger and will take the treasure that belongs to them."
do you think God forgives man just because of apparent purities despite his impurities? Does the man not reek of pork and whoredom of his fornication and lust? Even though innocent?
Surely Moses was wrong an Al-Khidr was right: for Khidr, as agent of God, was fit to pass judgement on the humans as he will, just like the man who without knowledge and proper understanding may break the commandments of Allaah so is he forbidden from the fruits of Jannah even if his acts were pure and innocent