From him, from Ayyub ibn Nuh, from some of his companions:
Abu Abdillah عليه السلام, peace be upon him, said: "The naked person who does not have a garment, if he finds a pit, he should enter it and perform prostration and bowing within it."
Ali Akbar al-Ghaffari
Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 2, p. 393