In Afghanistan and elsewhere in the Islamic world, this kind of behavior is broadly tolerated. Women are so devalued, men look to other men and boys for sexual pleasure. Also, the Qur’an promises not just virgins to the blessed, but boys like “scattered pearls”:

“Those are the ones brought near in the Gardens of Pleasure, a company of the former peoples and a few of the later peoples, on thrones woven, reclining on them, facing each other. There will circulate among them young boys made eternal with vessels, pitchers and a cup from a flowing spring.” — Qur’an 56:11-18

“And they will be given to drink a cup whose mixture is of ginger, a fountain within Paradise named Salsabeel. There will circulate among them young boys made eternal. When you see them, you would think them scattered pearls. And when you look there, you will see pleasure and great dominion.” — Qur’an 76:17-20

“Muslim refugee, 20, who raped a boy, 10, in his Sydney home says what he did ‘is not a crime because it is acceptable in his homeland,'” by Belinda Cleary and Belinda Grant Geary, Daily Mail Australia, August 31, 2016 (thanks to Kenneth):