The theory of how people explain other's behaviour by attributing it either to internal disposition or to external situation refers to

Attribution theory

Situational theory

Attributing causality

Dispositional theory