The 57-year-old Pakistani, identified only as D.K., allegedly tried to rape the boy in the washroom of a mosque in Dubai Jan 9, Gulf News reported Wednesday.
The Dubai Court of First Instance acquitted D.K. after he pleaded not guilty contending that the accusation was unfounded and baseless.
The father of the boy said his son told him that a man called him to the washroom.
"He said the man undressed him in an attempt to rape him, but my son told me that he managed to open the door and run away," the father said.