It is narrated from Talhah bin Abi Qanan (may Allah have mercy on him): "When the Messenger of Allah (peace and blessings be upon him) intended to relieve himself and came to a hard patch of ground, he would take a stick and dig into the ground with it until the earth was stirred up (that is, the ground became soft), and then he would relieve himself in that place."
This chain is da'if (weak) because of the tadlis (concealing a link in the chain) of al-Walid bin Muslim.