Usually, nobody cares if you are leaving their country. Why should they care?
But there are exceptions (especially Greece, Italy, Spain) and you never know...
On arrival, it usually does get looked at but again there are exceptions.
If you pass through an airport where there is H24 police presence then it will most likely be looked at, because they need to keep up their workload.