Amazon has a few books available, the most popular called "Metasploit: The Penetration Tester's Guide"[0] but is a little outdated (2011) and "Advanced Penetration Testing: Hacking the World's Most Secure Networks"[1] which mentions metasploit for its teachings and its more recent (2017)
[0] https://www.amazon.com/Metasploit-Penetration-Testers-David-...
[1] https://www.amazon.com/Advanced-Penetration-Testing-Hacking-...