there is no constraint on the prophet in what god has decreed for him. this has been the way of god with who have gone before you and gods command is a determined act.
ما كان على النبي من حرج فيما فرض الله له سنة الله في الذين خلوا من قبل وكان أمر الله قدرا مقدورا