I have seen a movie when I was 7 or 8, probably released in the late 90s or early 2000s. Here is the plot which I remember:
There is this hero, who is friends with a guy (I don't know the exact details). One day aliens come to the earth and their ship could be seen as a very large one covering the sun from the viewers below. The aliens tell they are going to destroy that planet, and all the humans start worrying... On the day of destruction, the hero's friend uses something (a ring I suppose) to teleport into the alien space ship. A beam of light is released from the ring and then they are in the spaceship.
The friend gives a fish sorta creature to the hero to stuff his ears with, and then they are captured by the aliens inside the ship. The friend tells the hero to tell "It is good" whenever the alien head does something like sing a song or tell a poem. He tells the hero that "those are really worse and that is why I gave you that creature to stuff your ear with". And then when they are with the alien head, he sings a song/ tells a poem to the hero's friend, who considered it unbearable and shouts for help. When the head tells the same poem/song to the hero, the voice appeared distorted and when the alien asks the hero how was it, he tells it was good.
I don't remember the story from now... But in the end, it was a funny and illogical one. As the Earth has been destroyed, a new earth has been created by some guy and they are actually watering the rivers! (Yes sounds weird, but that is how I remember it). Somehow the same humans are there in this new Earth, and the hero asks the guy who created the new Earth to bring all people back alive, and so does he.
I know this plot sounds so bizarre, but that is how I exactly remember it.