Hajjaj said: I asked Ata about a person who prays on an overcast day facing a direction other than the qiblah. Ata said: "His prayer is valid."