The famous Taabi’i Wahb ibn Munabbih was once asked,
“Isn’t the statement of laa ilaaha ill-Allah the key to Paradise?” He answered, “Yes, but every key has ridges, the door will open for you. Yet if you do not have the right ridges the door will not open for you.”
That is, it is saying {while meeting} certain conditions. These conditions are what will differentiate the person who will benefit from his making of that statement from the one who will not benefit from that statement.