This paper concentrates on the mathematical modelling for three-dimensional flow of an incompressible Oldroyd-B fluid over a bidirectional stretching surface. Mathematical formulation incorporates the effect of internal heat source/sink. Two cases of heat transfer namely the prescribed surface temperature (PST) and prescribed surface heat flux (PHF) are considered. Computations for the governing nonlinear flow are presented using homotopy analysis method. Comparison of the present analysis is shown with the previous limiting result. The obtained results are discussed by plots of interesting parameters for both PST and PHF cases. We examine that an increase in Prandtl number leads to a reduction in PST and PHF. It is noted that both PST and PHF are increased with an increase in source parameter. Further we have seen that the temperature is an increasing function of ratio parameter.