What does the SSS congruence theorem say?

A. if a triangle has three congruent sides, then it is equilateral
B. if two triangles have three pairs of sides, then the triangles are congruent.
C. if a polygon has three sides, then it is a triangle.
D. if two triangles have three pairs of congruent sides, then the triangles are congruent.

D. if two triangles have three pairs of congruent sides, then the triangles are congruent.