His main work was the libretto for The Veiled Prophet , a Romantic Opera in 3 acts composed by Charles Villiers Stanford , adapted from the homonymous ballad in Thomas Moore oriental romance Lalla-Rookh , published 1890 .