 Was he in doubt or not? If he was in doubt why Allah said to Muhammad if you were in doubt? If he was not in doubt why Allah said to Muhammad if you were in doubt? It's a problem if you say yes he was or no he was not because in reality Allah the God of Muhammad does not know. That's why we call him according to the word of Allah the God of perhaps.