salaah

Witr Salaah

Q: My question is regarding witr Salaah. In one Hadith the prophet (Sallallahu Alayhi Wasallam) forbade praying witr like maghrib but in the hanafi fiqh it is prayed like maghrib and I am a bit confused. Please clarify.