Hello

The Immigration office will check the stamps on the passport, as they request a photocopy of all the pages of the passport for this end. If they have any doubts or well-founded reasons to believe you have not been in Spain for the minimum period required, they will ask the Border and Police control offices to check their records.

Regards,