the prophet cannot be blamed for carrying out the commands of god. it was the tradition of god with those who lived before. the command of god has already been decreed and ordained.
ما كان على النبي من حرج فيما فرض الله له سنة الله في الذين خلوا من قبل وكان أمر الله قدرا مقدورا