The Most Magnificent Mosque by Ann Jungman
Visitors to the mosque at Cordoba are plagued by the tricks of three naughty boys: Rashid, who is Muslim, Samuel who is Jewish and Miguel, a Christian. One day they go a step too far, and as a punishment they are forced to work in the mosque gardens where they learn about the building's beauty.