Being at the right place at the right time doing the right thing in the right way.
Being right where God placed you, and following, his plans, his purposes, and his pursuits, he declares this to be righteousness.
James 5:16-18
16 Confess your faults one to another, and pray one for another, that ye may be healed. The effectual fervent prayer of a righteous man availeth much. 17 Elias was a man subject to like passions as we are, and he prayed earnestly that it might not rain: and it rained not on the earth by the space of three years and six months. 18 And he prayed again, and the heaven gave rain, and the earth brought forth her fruit.