"Why are you falling on your face?" (Joshua 7:10). Rabbi Eleazar said: A distinguished man is not permitted to fall on his face [in supplication before the public] unless he is answered as Joshua was answered, as it is said, "And the LORD said to Joshua, Get up" (Joshua 7:10).
When a Great Man May Fall on His Face in Prayer
Yalkut Shimoni on Nach 17:7
למה אתה נופל על פניך (יהושע ז, י). אמר רבי אלעזר אין אדם חשוב רשאי ליפול על פניו אלא אם כן נענה כיהושע שנאמר ויאמר ה' אל יהושע קום לך: