Extension of a quadratic transformation due to Whipple with an application