It would take an extremely large spacecraft to deflect a large asteroid that would be headed directly for the Earth.
Prayer is talking to something or anything with which we seek union, even if we are bitter or insane or broken. (In fact, these are probably the best possible conditions under which to pray. ) Prayer is taking a chance that against all odds and past history, we are loved and chosen, and do not have to get it together before we show up.