Why would he want to pray just like that on an open field? If it was indeed prayer time he could always have done so in a private place. Perhaps he was just doing what we Muslims do at the times of joy. A quick prostration of thanks which lasts just a few seconds, not to be confused with our prayers which would take at least ten minutes.