It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, a servant reaches the lofty ranks of the Hereafter and honoured stations through his good character, even though he is weak in (voluntary) worship; and indeed he reaches the lowest pit of Hell through his bad character, even though he is a (devoted) worshipper."
The wording of both narrations is the same, except that in the narration of al-Miqdam (may Allah have mercy on him) the words are "the lowest level in Hell," and he did not mention the words "even though he is a worshipper."