The Sefer Hamitzvot of the Rambam Mitzvah 48 and 49.