What prompted him to do this? He said: He wanted that his Ummah should not be put to (unnecessary) hardship.
Sahih Muslim Book 6, Hadith 61