To try to pray is to pray. You can't fail at it. It's the only human endeavor I can think of where trying is doing.