Abraham was about to ask the servant to swear to do something. Putting his hand under Abraham's thigh would show that he would certainly do what he would swear to do.