Sir Isaac Newton’s Universal Law of Gravitation can be applied both at cosmic level and atomic level. It follows inverse square law of force.
In daily life we observe things falling from a height. We often drop a pen or a pencil. A ball thrown up comes down. Isaac Newton saw an apple falling from a tree. He thought why not the apples go up?
The invisible force that attracts an apple towards the earth led to the idea of gravitation.