For your Works Cited page, when citing a play from a book you'll need to include both the book publication information and the play information. The examples below are for a print book. If the book is an eBook, it will also require the location of the eBook, generally the database provider and URL.
Structure
Play author. "Play Title." Title of book, author(s) or editor(s), publisher, year of publication, page number(s).
Example
Shakespeare, William. Macbeth. The Riverside Shakespeare, edited by G. Blakemore Evans et al., vol. 2, Houghton Mifflin, 1974, pp. 1307-42.